Example #1
0
 public Task <AsyncTaskResult> HandleAsync(MyParentSetedEvent evnt)
 {
     return(TryUpdateRecordAsync(connection =>
     {
         return connection.UpdateAsync(new
         {
             ParentId = evnt.ParentId,
             Version = evnt.Version,
             EventSequence = evnt.Sequence
         }, new
         {
             Id = evnt.AggregateRootId,
             //Version = evnt.Version - 1
         }, ConfigSettings.UserTable);
     }));
 }
Example #2
0
 private void Handle(MyParentSetedEvent evnt)
 {
     _parentId = evnt.ParentId;
 }