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

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

            base.Handle(command);
        }