예제 #1
0
 public void Handle(DoSomethingForSpecifiedDurationCommand command)
 {
     Task.Delay(command.DurationInMilliSeconds).ContinueWith(t =>
     {
         base.Handle(command);
     });
 }
예제 #2
0
        public async Task HandleAsync(DoSomethingForSpecifiedDurationCommand command, CancellationToken cancellationToken = default(CancellationToken))
        {
            await Task.Delay(command.DurationInMilliSeconds, cancellationToken);

            base.HandleAsync(command);
        }
예제 #3
0
        public async Task DoSomethingAsync(DoSomethingForSpecifiedDurationCommand command, CancellationToken ctx)
        {
            await Task.Delay(command.DurationInMilliSeconds, ctx);

            base.Handle(command);
        }