예제 #1
0
 public void Start()
 {
     _subscriber.RegisterQueueListener();
     _subscriber.SubscribeAsync <ArticleCreatedNotificationEvent, ArticleCreatedNotificationEventHandler>().Wait();
 }
예제 #2
0
        public async Task SubscribeAsync()
        {
            await _eventBusSubscriber.RegisterSubscriptionListenerAsync();

            await _eventBusSubscriber.SubscribeAsync <CompletedEvent, CompletedEventHandler>();
        }