Exemplo n.º 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));
        }
Exemplo n.º 2
0
 private static IEnumerable <ICommand> Process(INotification notification, IContext context, INotificationProcessor processor, Microsoft.Extensions.Logging.ILogger log)
 {
     return(processor.Process(notification, context));
 }