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