- namespace HealthMonitor.Core.Pipeline.Aop
- {
- public abstract class AopValueBase : IValue<CacheInterceptorContext>
- {
- public IValue<CacheInterceptorContext> Next { get; set; } = default!;
-
- public abstract Task Invoke(CacheInterceptorContext context);
-
-
-
-
-
-
- protected async Task InvokeNextAsync(CacheInterceptorContext context)
- {
- if (Next != null) await Next.Invoke(context);
- }
- }
- }
|