private void Apply(ProductPublished @event) { Status = ProductStatus.Published; }
public void Handle(ProductPublished @event, CommerceInstance instance) { var product = CommerceInstance.Current.Database.Repository <Product>().Find(@event.ProductId); Index(product, GetAllCultures()); }
void Apply(ProductPublished e) { Id = e.Id.ToString(); _published = true; }
public Task HandleAsync(ProductPublished @event) { return(RemoveCacheAsync()); }