コード例 #1
0
        public async Task HandleAsync(DelayCommand command, CancellationToken cancellationToken = default(CancellationToken))
        {
            await Task.Delay(command.DurationInMilliSeconds, cancellationToken);

            BaseHandle(command);
        }
コード例 #2
0
 public void Handle(DelayCommand command)
 {
     Task.Delay(command.DurationInMilliSeconds).GetAwaiter().GetResult();
     BaseHandle(command);
 }