瀏覽代碼

Fixed spelling error

master
yangxiaodong 7 年之前
父節點
當前提交
7f3b8c0e2a
共有 3 個文件被更改,包括 6 次插入6 次删除
  1. +1
    -1
      src/DotNetCore.CAP/IQueueExecutor.Publish.Base.cs
  2. +1
    -1
      src/DotNetCore.CAP/IQueueExecutor.Subscibe.cs
  3. +4
    -4
      src/DotNetCore.CAP/Processor/States/IState.Successed.cs

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



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



src/DotNetCore.CAP/Processor/States/IState.Succeeded.cs → 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);
}

Loading…
取消
儲存