public class ShutdownEventArgs

Summary

Information about the reason why a particular model, session, or connection was destroyed.

Remarks

The ClassId and Initiator properties should be used to determine the originator of the shutdown event.

Property Summary

Flags Type Name Summary
public object Cause (r)

Object causing the shutdown, or null if none.

public ushort ClassId (r)

AMQP content-class ID, or 0 if none.

public ShutdownInitiator Initiator (r)

Returns the source of the shutdown event: either the application, the library, or the remote peer.

public ushort MethodId (r)

AMQP method ID within a content-class, or 0 if none.

public ushort ReplyCode (r)

One of the standardised AMQP reason codes. See RabbitMQ.Client.Framing.*.Constants.

public string ReplyText (r)

Informative human-readable reason text.

Constructor Summary

Flags Name Summary
public ShutdownEventArgs(ShutdownInitiator initiator, ushort replyCode, string replyText, ushort classId, ushort methodId)

Construct a ShutdownEventArgs with the given parameters and a null cause.

public ShutdownEventArgs(ShutdownInitiator initiator, ushort replyCode, string replyText, ushort classId, ushort methodId, object cause)

Construct a ShutdownEventArgs with the given parameters.

public ShutdownEventArgs(ShutdownInitiator initiator, ushort replyCode, string replyText)

Construct a ShutdownEventArgs with the given parameters, 0 for ClassId and MethodId, and a null Cause.

public ShutdownEventArgs(ShutdownInitiator initiator, ushort replyCode, string replyText, object cause)

Construct a ShutdownEventArgs with the given parameters and 0 for ClassId and MethodId.

Method Summary

Flags Name Summary
public virtual string ToString()

Override ToString to be useful for debugging.

Property Detail

public object Cause (r)

Summary

Object causing the shutdown, or null if none.

public ushort ClassId (r)

Summary

AMQP content-class ID, or 0 if none.

public ShutdownInitiator Initiator (r)

Summary

Returns the source of the shutdown event: either the application, the library, or the remote peer.

public ushort MethodId (r)

Summary

AMQP method ID within a content-class, or 0 if none.

public ushort ReplyCode (r)

Summary

One of the standardised AMQP reason codes. See RabbitMQ.Client.Framing.*.Constants.

public string ReplyText (r)

Summary

Informative human-readable reason text.

Constructor Detail

ShutdownEventArgs

public ShutdownEventArgs(ShutdownInitiator initiator, ushort replyCode, string replyText, ushort classId, ushort methodId)

Parameters
Name Type
initiator ShutdownInitiator
replyCode ushort
replyText string
classId ushort
methodId ushort

Summary

Construct a ShutdownEventArgs with the given parameters and a null cause.

ShutdownEventArgs

public ShutdownEventArgs(ShutdownInitiator initiator, ushort replyCode, string replyText, ushort classId, ushort methodId, object cause)

Parameters
Name Type
initiator ShutdownInitiator
replyCode ushort
replyText string
classId ushort
methodId ushort
cause object

Summary

Construct a ShutdownEventArgs with the given parameters.

ShutdownEventArgs

public ShutdownEventArgs(ShutdownInitiator initiator, ushort replyCode, string replyText)

Parameters
Name Type
initiator ShutdownInitiator
replyCode ushort
replyText string

Summary

Construct a ShutdownEventArgs with the given parameters, 0 for ClassId and MethodId, and a null Cause.

ShutdownEventArgs

public ShutdownEventArgs(ShutdownInitiator initiator, ushort replyCode, string replyText, object cause)

Parameters
Name Type
initiator ShutdownInitiator
replyCode ushort
replyText string
cause object

Summary

Construct a ShutdownEventArgs with the given parameters and 0 for ClassId and MethodId.

Method Detail

ToString

public virtual string ToString()

Flags public virtual
Return type string

Summary

Override ToString to be useful for debugging.