//设置支付密码
 public Task <AsyncTaskResult> HandleAsync(WalletAccessCodeUpdatedEvent evnt)
 {
     return(_commandService.SendAsync(CreatedNotificationCommand(
                                          evnt.AggregateRootId,
                                          "设置支付密码",
                                          NotificationType.PayPasswordReseted,
                                          evnt.AggregateRootId,
                                          true)));
 }
Exemple #2
0
 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);
     }));
 }
Exemple #3
0
 private void Handle(WalletAccessCodeUpdatedEvent evnt)
 {
     _accessCode = evnt.AccessCode;
 }