public void Start() { _subscriber.RegisterQueueListener(); _subscriber.SubscribeAsync <ArticleCreatedNotificationEvent, ArticleCreatedNotificationEventHandler>().Wait(); }
public async Task SubscribeAsync() { await _eventBusSubscriber.RegisterSubscriptionListenerAsync(); await _eventBusSubscriber.SubscribeAsync <CompletedEvent, CompletedEventHandler>(); }