Inheritance: CQRSMicroservices.Framework.Event
        private async Task Handle(ArticleUnavailableEvent @event)
        {
            var articleObject = await Repository.Get(@event.ArticleId);

            articleObject.Property("Available").Value = false;
            await Repository.Update(@event.ArticleId, articleObject);
        }
 private async Task Handle(ArticleUnavailableEvent @event)
 {
   var articleObject = await Repository.Get(@event.ArticleId);
   articleObject.Property("Available").Value = false;
   await Repository.Update(@event.ArticleId, articleObject);
 }
Ejemplo n.º 3
0
 private void Apply(ArticleUnavailableEvent @event)
 {
     _available = false;
 }
 private void Apply(ArticleUnavailableEvent @event)
 {
   _available = false;
 }