예제 #1
0
        public async Task Handle(SubscribedToCollection notification)
        {
            using (var session = await _api.StartSession().ConfigureAwait(false)) {
                await FetchCollectionAndConvert(notification.CollectionId).ConfigureAwait(false);

                await session.Close().ConfigureAwait(false);
            }
        }
예제 #2
0
 async Task SubscribedToCollection(SubscribedToCollection evt)
 {
     await Cheat.PublishDomainEvent(evt).ConfigureAwait(false);
 }