You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
341 B
14 lines
341 B
namespace Apewer.Web
|
|
{
|
|
|
|
/// <summary>中间件。</summary>
|
|
public interface IApiMiddleware
|
|
{
|
|
|
|
/// <summary>执行中间件。</summary>
|
|
/// <remarks>调用 <see cref="ApiContext.Next" /> 方法可继续处理请求;若不调用则终止请求。</remarks>
|
|
void Invoke(ApiContext context);
|
|
|
|
}
|
|
|
|
}
|