|
|
@ -5,7 +5,8 @@ |
|
|
public interface IApiMiddleware |
|
|
public interface IApiMiddleware |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
/// <summary>调用中间件。</summary>
|
|
|
|
|
|
|
|
|
/// <summary>执行中间件。</summary>
|
|
|
|
|
|
/// <remarks>调用 <see cref="ApiContext.Next" /> 方法可继续处理请求;若不调用则终止请求。</remarks>
|
|
|
void Invoke(ApiContext context); |
|
|
void Invoke(ApiContext context); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|