async Task <dynamic> GetRetryHistory() { using (var session = Store.OpenAsyncSession()) { var retryHistory = await session.LoadAsync <RetryHistory>(RetryHistory.MakeId()).ConfigureAwait(false) ?? RetryHistory.CreateNew(); return(Negotiate .WithDeterministicEtag(retryHistory.GetHistoryOperationsUniqueIdentifier()) .WithModel(retryHistory)); } }
dynamic GetRetryHistory() { using (var session = Store.OpenSession()) { var retryHistory = session.Load <RetryHistory>(RetryHistory.MakeId()) ?? RetryHistory.CreateNew(); return(Negotiate .WithDeterministicEtag(retryHistory.GetHistoryOperationsUniqueIdentifier()) .WithModel(retryHistory)); } }