예제 #1
0
        public override async Task <bool> Handle(JobEvent <EchoJobEventData> request, CancellationToken cancellationToken)
        {
            await Task.Run(() => this.logger.LogInformation($"{{LogKey:l}} {request?.Data?.Text} (type={this.GetType().PrettyName()})", LogKeys.JobScheduling));

            return(true);
        }
예제 #2
0
 public abstract Task <bool> Handle(JobEvent <TData> request, CancellationToken cancellationToken);