Example #1
0
        public async Task Process(TRequest aRequest, CancellationToken aCancellationToken)
        {
            var notification = new PrePipelineNotification <TRequest>
            {
                Request = aRequest,
            };

            Logger.LogDebug("PrePipelineNotificationRequestPreProcessor");
            await Mediator.Publish(notification, aCancellationToken);
        }
        public Task Process(TRequest aRequest, CancellationToken aCancellationToken)
        {
            var notification = new PrePipelineNotification <TRequest>
            {
                Request = aRequest,
            };

            Logger.LogDebug("PrePipelineNotificationRequestPreProcessor");
            return(Publisher.Publish(notification, aCancellationToken));
        }
        public async Task Process(TRequest aRequest, CancellationToken aCancellationToken)
        {
            var notification = new PrePipelineNotification <TRequest>
            {
                Request = aRequest,
            };

            Console.WriteLine("PrePipelineNotificationRequestPreProcessor");
            await Mediator.Publish(notification);
        }