Table of Contents

Interface JobContext

Namespace
MassTransit
Assembly
MassTransit.Abstractions.dll
public interface JobContext : PipeContext, MessageContext, ISendEndpointProvider, ISendObserverConnector, IPublishEndpoint, IPublishObserverConnector
Inherited Members
Extension Methods

Properties

AttemptId

Guid AttemptId { get; }

Property Value

Guid

ElapsedTime

TimeSpan ElapsedTime { get; }

Property Value

TimeSpan

JobId

Guid JobId { get; }

Property Value

Guid

RetryAttempt

int RetryAttempt { get; }

Property Value

int

Methods

NotifyCanceled(string?)

Task NotifyCanceled(string? reason = null)

Parameters

reason string

Returns

Task

NotifyCompleted()

Task NotifyCompleted()

Returns

Task

NotifyFaulted(Exception, TimeSpan?)

Task NotifyFaulted(Exception exception, TimeSpan? delay = null)

Parameters

exception Exception
delay TimeSpan?

Returns

Task

NotifyStarted()

Task NotifyStarted()

Returns

Task