Пример #1
0
 public abstract Task <bool> Handle(QueueEvent <TData> request, CancellationToken cancellationToken);
Пример #2
0
        public override async Task <bool> Handle(QueueEvent <EchoQueueEventData> request, CancellationToken cancellationToken)
        {
            await Task.Run(() => this.logger.LogInformation($"{{LogKey:l}} {request.Item.Data.Text} (id={request.Item.Id}, type={this.GetType().PrettyName()})", LogKeys.Queueing), cancellationToken).AnyContext();

            return(true);
        }