public async Task HandleAsync(DelayCommand command, CancellationToken cancellationToken = default(CancellationToken)) { await Task.Delay(command.DurationInMilliSeconds, cancellationToken); BaseHandle(command); }
public void Handle(DelayCommand command) { Task.Delay(command.DurationInMilliSeconds).GetAwaiter().GetResult(); BaseHandle(command); }