Class ShutdownEventArgs
Information about the reason why a particular model, session, or connection was destroyed.
public class ShutdownEventArgs : EventArgs
- Inheritance
-
ShutdownEventArgs
- Inherited Members
Remarks
The ClassId and Initiator properties should be used to determine the originator of the shutdown event.
Constructors
ShutdownEventArgs(ShutdownInitiator, ushort, string, Exception)
Construct a ShutdownEventArgs with the given parameters.
public ShutdownEventArgs(ShutdownInitiator initiator, ushort replyCode, string replyText, Exception exception)
Parameters
initiator
ShutdownInitiatorreplyCode
ushortreplyText
stringexception
Exception
ShutdownEventArgs(ShutdownInitiator, ushort, string, object)
Construct a ShutdownEventArgs with the given parameters and 0 for ClassId and MethodId.
public ShutdownEventArgs(ShutdownInitiator initiator, ushort replyCode, string replyText, object cause = null)
Parameters
initiator
ShutdownInitiatorreplyCode
ushortreplyText
stringcause
object
ShutdownEventArgs(ShutdownInitiator, ushort, string, ushort, ushort, object)
Construct a ShutdownEventArgs with the given parameters.
public ShutdownEventArgs(ShutdownInitiator initiator, ushort replyCode, string replyText, ushort classId, ushort methodId, object cause = null)
Parameters
initiator
ShutdownInitiatorreplyCode
ushortreplyText
stringclassId
ushortmethodId
ushortcause
object
Properties
Cause
Object causing the shutdown, or null if none.
public object Cause { get; }
Property Value
ClassId
AMQP content-class ID, or 0 if none.
public ushort ClassId { get; }
Property Value
Exception
Exception causing the shutdown, or null if none.
public Exception Exception { get; }
Property Value
Initiator
Returns the source of the shutdown event: either the application, the library, or the remote peer.
public ShutdownInitiator Initiator { get; }
Property Value
MethodId
AMQP method ID within a content-class, or 0 if none.
public ushort MethodId { get; }
Property Value
ReplyCode
One of the standardised AMQP reason codes. See RabbitMQ.Client.Framing.*.Constants.
public ushort ReplyCode { get; }
Property Value
ReplyText
Informative human-readable reason text.
public string ReplyText { get; }
Property Value
Methods
ToString()
Override ToString to be useful for debugging.
public override string ToString()