Table of Contents

Class PublishOutcome

Namespace
RabbitMQ.AMQP.Client
Assembly
RabbitMQ.AMQP.Client.dll

Represents the outcome of a publish operation. It contains the state of the outcome and an error if the outcome is not successful.

public class PublishOutcome
Inheritance
PublishOutcome
Inherited Members

Constructors

PublishOutcome(OutcomeState, Error?, AmqpMessageRejectedException?)

public PublishOutcome(OutcomeState state, Error? error, AmqpMessageRejectedException? exception = null)

Parameters

state OutcomeState
error Error
exception AmqpMessageRejectedException

Properties

Error

The Error, if any.

public Error? Error { get; }

Property Value

Error

Exception

An AmqpMessageRejectedException if the message was rejected and the broker provided rejection details (requires RabbitMQ 4.3 or later). null otherwise.

public AmqpMessageRejectedException? Exception { get; }

Property Value

AmqpMessageRejectedException

State

public OutcomeState State { get; }

Property Value

OutcomeState