public async Task HandleAsync(UserEmailChangedEvent message) { var accountId = message.AggregateRootKey.ToString(); var updateCriteria = new UpdateCriteria <AccountTableObject> { { x => x.Email, message.Email } }; Expression <Func <AccountTableObject, bool> > updateSpecification = x => x.Id == accountId; await gateway.UpdateAsync <AccountTableObject>(updateCriteria, updateSpecification); }
private void On(UserEmailChangedEvent changed) { _email = changed.Email; }
private void HandleChangeEmailEvent(UserEmailChangedEvent evnt) { this.Email = evnt.Email; }