Quellcode durchsuchen

Fixed spelling error

master
yangxiaodong vor 7 Jahren
Ursprung
Commit
7f3b8c0e2a
3 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

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

Laden…
Abbrechen
Speichern