From 7f3b8c0e2af7949dc1b41d6243bfd719ef1a485b Mon Sep 17 00:00:00 2001 From: yangxiaodong Date: Wed, 30 Aug 2017 18:32:31 +0800 Subject: [PATCH] Fixed spelling error --- src/DotNetCore.CAP/IQueueExecutor.Publish.Base.cs | 2 +- src/DotNetCore.CAP/IQueueExecutor.Subscibe.cs | 2 +- .../States/{IState.Succeeded.cs => IState.Successed.cs} | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) rename src/DotNetCore.CAP/Processor/States/{IState.Succeeded.cs => IState.Successed.cs} (76%) diff --git a/src/DotNetCore.CAP/IQueueExecutor.Publish.Base.cs b/src/DotNetCore.CAP/IQueueExecutor.Publish.Base.cs index e7274a8..d415e11 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.SuccessedMessageExpiredAfter); + newState = new SuccessedState(_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 a1f6956..f6e08af 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.SuccessedMessageExpiredAfter); + newState = new SuccessedState(_options.SuccessedMessageExpiredAfter); } await _stateChanger.ChangeStateAsync(message, newState, connection); diff --git a/src/DotNetCore.CAP/Processor/States/IState.Succeeded.cs b/src/DotNetCore.CAP/Processor/States/IState.Successed.cs similarity index 76% rename from src/DotNetCore.CAP/Processor/States/IState.Succeeded.cs rename to src/DotNetCore.CAP/Processor/States/IState.Successed.cs index 0a3f240..d9a96f2 100644 --- a/src/DotNetCore.CAP/Processor/States/IState.Succeeded.cs +++ b/src/DotNetCore.CAP/Processor/States/IState.Successed.cs @@ -3,20 +3,20 @@ using DotNetCore.CAP.Models; namespace DotNetCore.CAP.Processor.States { - public class SucceededState : IState + public class SuccessedState : IState { - public const string StateName = "Succeeded"; + public const string StateName = "Successed"; public TimeSpan? ExpiresAfter { get; private set; } public string Name => StateName; - public SucceededState() + public SuccessedState() { ExpiresAfter = TimeSpan.FromHours(1); } - public SucceededState(int ExpireAfterSeconds) + public SuccessedState(int ExpireAfterSeconds) { ExpiresAfter = TimeSpan.FromSeconds(ExpireAfterSeconds); }