//设置支付密码 public Task <AsyncTaskResult> HandleAsync(WalletAccessCodeUpdatedEvent evnt) { return(_commandService.SendAsync(CreatedNotificationCommand( evnt.AggregateRootId, "设置支付密码", NotificationType.PayPasswordReseted, evnt.AggregateRootId, true))); }
public Task <AsyncTaskResult> HandleAsync(WalletAccessCodeUpdatedEvent evnt) { return(TryUpdateRecordAsync(connection => { return connection.UpdateAsync(new { AccessCode = evnt.AccessCode, Version = evnt.Version, EventSequence = evnt.Sequence }, new { Id = evnt.AggregateRootId, //Version = evnt.Version - 1 }, ConfigSettings.WalletTable); })); }
private void Handle(WalletAccessCodeUpdatedEvent evnt) { _accessCode = evnt.AccessCode; }