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