コード例 #1
0
        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));
            }
        }
コード例 #2
0
        dynamic GetRetryHistory()
        {
            using (var session = Store.OpenSession())
            {
                var retryHistory = session.Load <RetryHistory>(RetryHistory.MakeId()) ?? RetryHistory.CreateNew();

                return(Negotiate
                       .WithDeterministicEtag(retryHistory.GetHistoryOperationsUniqueIdentifier())
                       .WithModel(retryHistory));
            }
        }