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