public Task <AsyncTaskResult> HandleAsync(NotificationReadedEvent evnt) { return(TryUpdateRecordAsync(connection => { return connection.UpdateAsync(new { IsRead = 1, Version = evnt.Version, EventSequence = evnt.Sequence }, new { Id = evnt.AggregateRootId, //Version = evnt.Version - 1 }, ConfigSettings.NotificationTable); })); }
private void Handle(NotificationReadedEvent evnt) { _info.IsRead = true; }