Class ShutdownEventArgs
Information about the reason why a particular model, session, or connection was destroyed.
Inherited Members
Namespace: RabbitMQ.Client
Assembly: Apigen.dll
Syntax
public class ShutdownEventArgs : EventArgs
Remarks
The ClassId and Initiator properties should be used to determine the originator of the shutdown event.
Constructors
| Edit this page View SourceShutdownEventArgs(ShutdownInitiator, ushort, string, object)
Construct a ShutdownEventArgs with the given parameters and 0 for ClassId and MethodId.
Declaration
public ShutdownEventArgs(ShutdownInitiator initiator, ushort replyCode, string replyText, object cause = null)
Parameters
Type | Name | Description |
---|---|---|
ShutdownInitiator | initiator | |
ushort | replyCode | |
string | replyText | |
object | cause |
ShutdownEventArgs(ShutdownInitiator, ushort, string, ushort, ushort, object)
Construct a ShutdownEventArgs with the given parameters.
Declaration
public ShutdownEventArgs(ShutdownInitiator initiator, ushort replyCode, string replyText, ushort classId, ushort methodId, object cause = null)
Parameters
Type | Name | Description |
---|---|---|
ShutdownInitiator | initiator | |
ushort | replyCode | |
string | replyText | |
ushort | classId | |
ushort | methodId | |
object | cause |
Properties
| Edit this page View SourceCause
Object causing the shutdown, or null if none.
Declaration
public object Cause { get; }
Property Value
Type | Description |
---|---|
object |
ClassId
AMQP content-class ID, or 0 if none.
Declaration
public ushort ClassId { get; }
Property Value
Type | Description |
---|---|
ushort |
Initiator
Returns the source of the shutdown event: either the application, the library, or the remote peer.
Declaration
public ShutdownInitiator Initiator { get; }
Property Value
Type | Description |
---|---|
ShutdownInitiator |
MethodId
AMQP method ID within a content-class, or 0 if none.
Declaration
public ushort MethodId { get; }
Property Value
Type | Description |
---|---|
ushort |
ReplyCode
One of the standardised AMQP reason codes. See RabbitMQ.Client.Framing.*.Constants.
Declaration
public ushort ReplyCode { get; }
Property Value
Type | Description |
---|---|
ushort |
ReplyText
Informative human-readable reason text.
Declaration
public string ReplyText { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceToString()
Override ToString to be useful for debugging.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |