From 04572d3810b739969c2f0f8d49c309b5bd5a9963 Mon Sep 17 00:00:00 2001 From: yangxiaodong Date: Mon, 21 Aug 2017 10:54:43 +0800 Subject: [PATCH] rename --- src/DotNetCore.CAP/CAP.Options.cs | 8 ++++---- src/DotNetCore.CAP/IQueueExecutor.Publish.Base.cs | 2 +- src/DotNetCore.CAP/IQueueExecutor.Subscibe.cs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/DotNetCore.CAP/CAP.Options.cs b/src/DotNetCore.CAP/CAP.Options.cs index 3196c1e..d6cd441 100644 --- a/src/DotNetCore.CAP/CAP.Options.cs +++ b/src/DotNetCore.CAP/CAP.Options.cs @@ -23,7 +23,7 @@ namespace DotNetCore.CAP /// /// Default successed message expriation timespan, in seconds. /// - public const int DefaultSuccessMessageExpirationTimeSpan = 3600; + public const int DefaultSuccessMessageExpirationAfter = 3600; /// /// Failed message retry waiting interval. @@ -34,7 +34,7 @@ namespace DotNetCore.CAP { PollingDelay = DefaultPollingDelay; QueueProcessorCount = DefaultQueueProcessorCount; - SuccessedMessageExpiredTimeSpan = DefaultSuccessMessageExpirationTimeSpan; + SuccessedMessageExpiredAfter = DefaultSuccessMessageExpirationAfter; FailedMessageWaitingInterval = DefaultFailedMessageWaitingInterval; Extensions = new List(); } @@ -52,10 +52,10 @@ namespace DotNetCore.CAP public int QueueProcessorCount { get; set; } /// - /// Sent or received successed message due timespan, then the message will be deleted at due time. + /// Sent or received successed message after timespan of due, then the message will be deleted at due time. /// Dafault is 3600 seconds. /// - public int SuccessedMessageExpiredTimeSpan { get; set; } + public int SuccessedMessageExpiredAfter { get; set; } /// /// Failed messages polling delay time. diff --git a/src/DotNetCore.CAP/IQueueExecutor.Publish.Base.cs b/src/DotNetCore.CAP/IQueueExecutor.Publish.Base.cs index 9d5baab..e7274a8 100644 --- a/src/DotNetCore.CAP/IQueueExecutor.Publish.Base.cs +++ b/src/DotNetCore.CAP/IQueueExecutor.Publish.Base.cs @@ -58,7 +58,7 @@ namespace DotNetCore.CAP } else { - newState = new SucceededState(_options.SuccessedMessageExpiredTimeSpan); + newState = new SucceededState(_options.SuccessedMessageExpiredAfter); } await _stateChanger.ChangeStateAsync(message, newState, connection); diff --git a/src/DotNetCore.CAP/IQueueExecutor.Subscibe.cs b/src/DotNetCore.CAP/IQueueExecutor.Subscibe.cs index adcfd7a..a1f6956 100644 --- a/src/DotNetCore.CAP/IQueueExecutor.Subscibe.cs +++ b/src/DotNetCore.CAP/IQueueExecutor.Subscibe.cs @@ -64,7 +64,7 @@ namespace DotNetCore.CAP } else { - newState = new SucceededState(_options.SuccessedMessageExpiredTimeSpan); + newState = new SucceededState(_options.SuccessedMessageExpiredAfter); } await _stateChanger.ChangeStateAsync(message, newState, connection);