public Task Publish(TNotification notification, CancellationToken cancellationToken) { if (_disposed) { throw Error.Disposed(nameof(INotificationPipeline <TNotification>)); } return(notification.StopPropagation ? TaskUtils.CompletedTask : _processor.Process(notification, cancellationToken)); }
private static IEnumerable <ICommand> Process(INotification notification, IContext context, INotificationProcessor processor, Microsoft.Extensions.Logging.ILogger log) { return(processor.Process(notification, context)); }