Task IEventSubscriber.OnEventAsync(IEventSubscription subscription, StoredEvent storedEvent) { return(dispatcher.DispatchAsync(() => HandleEventAsync(subscription, storedEvent))); }
private async Task PublishAsync(StoredEvent storedEvent) { await publishNext(storedEvent).ConfigureAwait(false); }
public bool Handles(StoredEvent @event) { return(true); }
private Task OnEventAsync(IEventSubscription subscriber, StoredEvent ev) { return(sutSubscriber.OnEventAsync(subscriber, ev)); }