Table of Contents

Interface RetryContext<TContext>

Namespace
MassTransit
Assembly
MassTransit.Abstractions.dll

The retry context, with the specified context type

public interface RetryContext<TContext> : RetryContext where TContext : class

Type Parameters

TContext

The context type

Inherited Members

Properties

Context

The context being managed by the retry policy

TContext Context { get; }

Property Value

TContext

Methods

CanRetry(Exception, out RetryContext<TContext>)

Determines if the exception can be retried

bool CanRetry(Exception exception, out RetryContext<TContext> retryContext)

Parameters

exception Exception

The exception that occurred

retryContext RetryContext<TContext>

The retry context for the retry

Returns

bool

True if the task should be retried