Exemplo n.º 1
0
 public virtual void Handle(LongRunningEvent @event)
 {
     BaseHandle(@event);
     Task.Delay(@event.DurationInMilliseconds).GetAwaiter().GetResult();
 }
Exemplo n.º 2
0
 public virtual Task HandleAsync(LongRunningEvent @event, CancellationToken cancellationToken = default(CancellationToken))
 {
     BaseHandle(@event);
     return(Task.Delay(@event.DurationInMilliseconds, cancellationToken));
 }