InvokeDelegate.cs 364 B

123456789101112
  1. using System.Threading.Tasks;
  2. namespace FastGithub
  3. {
  4. /// <summary>
  5. /// 表示所有中间件执行委托
  6. /// </summary>
  7. /// <typeparam name="TContext">中间件上下文类型</typeparam>
  8. /// <param name="context">中间件上下文</param>
  9. /// <returns></returns>
  10. public delegate Task InvokeDelegate<TContext>(TContext context);
  11. }