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

  1. namespace Apewer.Web
  2. {
  3. /// <summary>中间件。</summary>
  4. public interface IApiMiddleware
  5. {
  6. /// <summary>执行中间件。</summary>
  7. /// <remarks>调用 <see cref="ApiContext.Next" /> 方法可继续处理请求;若不调用则终止请求。</remarks>
  8. void Invoke(ApiContext context);
  9. }
  10. }