示例#1
0
        public Task Publish(TNotification notification, CancellationToken cancellationToken)
        {
            if (_disposed)
            {
                throw Error.Disposed(nameof(INotificationPipeline <TNotification>));
            }

            return(notification.StopPropagation
                ? TaskUtils.CompletedTask
                : _processor.Process(notification, cancellationToken));
        }
示例#2
0
 private static IEnumerable <ICommand> Process(INotification notification, IContext context, INotificationProcessor processor, Microsoft.Extensions.Logging.ILogger log)
 {
     return(processor.Process(notification, context));
 }