public Task <AsyncTaskResult> HandleAsync(UserUnLockedEvent evnt)
 {
     return(TryUpdateRecordAsync(connection =>
     {
         return connection.UpdateAsync(new
         {
             IsLocked = (int)UserLock.UnLocked,
             Version = evnt.Version,
             EventSequence = evnt.Sequence
         }, new
         {
             Id = evnt.AggregateRootId,
             //Version = evnt.Version - 1
         }, ConfigSettings.UserTable);
     }));
 }
Exemple #2
0
 private void Handle(UserUnLockedEvent evnt)
 {
     _isLocked = false;
 }