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.
|
- namespace HealthMonitor.Core.Pipeline.Aop
- {
- public abstract class AopValueBase : IValue<CacheInterceptorContext>
- {
- public IValue<CacheInterceptorContext> Next { get; set; } = default!;
-
- public abstract Task Invoke(CacheInterceptorContext context);
-
- /// <summary>
- /// 执行下一个管道阀门
- /// </summary>
- /// <param name="context"></param>
- /// <returns></returns>
- protected async Task InvokeNextAsync(CacheInterceptorContext context)
- {
- if (Next != null) await Next.Invoke(context);
- }
- }
- }
|