Skip to content

Commit

Permalink
make ManualDeadletterCommand public
Browse files Browse the repository at this point in the history
  • Loading branch information
mookid8000 committed Nov 14, 2023
1 parent 296831c commit 99d9704
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Rebus/Retry/FailFast/ManualDeadletterCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@

namespace Rebus.Retry.FailFast;

class ManualDeadletterCommand
/// <summary>
/// Object that Rebus can add to its step context to signal to the retry step that it should immediately dead-letter the message being handled
/// </summary>
public class ManualDeadletterCommand
{
/// <summary>
/// Gets the exception passed via this command
/// </summary>
public Exception Exception { get; }

public ManualDeadletterCommand(Exception exception)
internal ManualDeadletterCommand(Exception exception)
{
Exception = exception ?? throw new ArgumentNullException(nameof(exception));
}
Expand Down

0 comments on commit 99d9704

Please sign in to comment.