public Task <ApiResponse <Unit> > Handle <TNotification>( NotificationExecutionContext <TSession, TNotification> context ) where TNotification : INotification { NotifyCache <TNotification> .EnsureInitialized(_steps); return(NotifyCache <TNotification> .Pipeline(context)); }
public Task <ApiResponse <Unit> > Handle <TSession, TNotification>( NotificationDelegate <TSession, TNotification> next, NotificationExecutionContext <TSession, TNotification> context) where TSession : IHattemSession where TNotification : INotification { NotificationCapturedContextStorage <TSession, TNotification> .CapturedContext.Add(context); return(next(context)); }