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.

20 line
600B

  1. namespace HealthMonitor.Core.Pipeline.Aop
  2. {
  3. public abstract class AopValueBase : IValue<CacheInterceptorContext>
  4. {
  5. public IValue<CacheInterceptorContext> Next { get; set; } = default!;
  6. public abstract Task Invoke(CacheInterceptorContext context);
  7. /// <summary>
  8. /// 执行下一个管道阀门
  9. /// </summary>
  10. /// <param name="context"></param>
  11. /// <returns></returns>
  12. protected async Task InvokeNextAsync(CacheInterceptorContext context)
  13. {
  14. if (Next != null) await Next.Invoke(context);
  15. }
  16. }
  17. }