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