Skip to content

IInboxHandlerContext Methods

Exposes the received message and its attempt-scoped terminal outcome.

Complete

abstract
public abstract void Complete()
Synchronously stages inbox completion and transport deduplication for the active attempt.

Exceptions

System.InvalidOperationException
The context is retired or belongs to another activation or handler attempt.

Fail(string)

abstract
public abstract void Fail(string reason)
Synchronously stages a permanent processing failure, retaining the message as a dead letter and recording its identity for transport deduplication.

Parameters

reasonstring
The nonblank diagnostic reason for the permanent failure.

Exceptions

System.ArgumentException
The reason is blank.
System.ArgumentNullException
The reason is null.
System.InvalidOperationException
The context is retired or belongs to another activation or attempt, or a different terminal outcome has already been staged.