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);