Inheritance: CQRSMicroservices.Framework.Event
コード例 #1
0
        private async Task Handle(ArticleUnavailableEvent @event)
        {
            var articleObject = await Repository.Get(@event.ArticleId);

            articleObject.Property("Available").Value = false;
            await Repository.Update(@event.ArticleId, articleObject);
        }
コード例 #2
0
 private async Task Handle(ArticleUnavailableEvent @event)
 {
   var articleObject = await Repository.Get(@event.ArticleId);
   articleObject.Property("Available").Value = false;
   await Repository.Update(@event.ArticleId, articleObject);
 }
コード例 #3
0
 private void Apply(ArticleUnavailableEvent @event)
 {
     _available = false;
 }
コード例 #4
0
 private void Apply(ArticleUnavailableEvent @event)
 {
   _available = false;
 }