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