Exemplo n.º 1
0
 public Task HandleAsync(TriggerLongRunningEvent @event, CancellationToken cancellationToken)
 {
     base.HandleAsync(@event);
     return(Task.Delay(@event.DurationInMilliseconds, cancellationToken));
 }
Exemplo n.º 2
0
        public virtual Task HandleAsync(TriggerLongRunningEvent @event, CancellationToken cancellationToken = default(CancellationToken))
        {
            handle(@event);

            return(Task.Delay(@event.DurationInMilliseconds, cancellationToken));
        }
Exemplo n.º 3
0
 public virtual void Handle(TriggerLongRunningEvent @event)
 {
     handle(@event);
     Task.Delay(@event.DurationInMilliseconds).GetAwaiter().GetResult();
 }