public Task <AsyncTaskResult> HandleAsync(NotificationSmsedEvent evnt)
 {
     return(TryUpdateRecordAsync(connection =>
     {
         return connection.UpdateAsync(new
         {
             IsSmsed = 1,
             IsMessaged = 1,
             Version = evnt.Version,
             EventSequence = evnt.Sequence
         }, new
         {
             Id = evnt.AggregateRootId,
             //Version = evnt.Version - 1
         }, ConfigSettings.NotificationTable);
     }));
 }
Beispiel #2
0
 private void Handle(NotificationSmsedEvent evnt)
 {
     _info.IsSmsed    = true;
     _info.IsMessaged = true;
 }