Information about the reason why a particular channel, session, or connection was destroyed.
public class ShutdownEventArgs : AsyncEventArgs
ShutdownEventArgs
Construct a ShutdownEventArgs with the given parameters.
public ShutdownEventArgs(ShutdownInitiator initiator, ushort replyCode, string replyText, Exception exception, CancellationToken cancellationToken = default)
Parameters
initiator
ShutdownInitiator
replyCode
ushort
replyText
string
exception
Exception
cancellationToken
CancellationToken
Construct a ShutdownEventArgs with the given parameters and 0 for ClassId and MethodId.
public ShutdownEventArgs(ShutdownInitiator initiator, ushort replyCode, string replyText, object? cause = null, CancellationToken cancellationToken = default)
Parameters
initiator
ShutdownInitiator
replyCode
ushort
replyText
string
cause
object
cancellationToken
CancellationToken
Construct a ShutdownEventArgs with the given parameters.
public ShutdownEventArgs(ShutdownInitiator initiator, ushort replyCode, string replyText, ushort classId, ushort methodId, object? cause = null, CancellationToken cancellationToken = default)
Parameters
initiator
ShutdownInitiator
replyCode
ushort
replyText
string
classId
ushort
methodId
ushort
cause
object
cancellationToken
CancellationToken
Object causing the shutdown, or null if none.
public object? Cause { get; }
Property Value
AMQP content-class ID, or 0 if none.
public ushort ClassId { get; }
Property Value
Exception causing the shutdown, or null if none.
public Exception? Exception { get; }
Property Value
Returns the source of the shutdown event: either the application, the library, or the remote peer.
public ShutdownInitiator Initiator { get; }
Property Value
AMQP method ID within a content-class, or 0 if none.
public ushort MethodId { get; }
Property Value
One of the standardised AMQP reason codes. See RabbitMQ.Client.Framing.*.Constants.
public ushort ReplyCode { get; }
Property Value
Informative human-readable reason text.
public string ReplyText { get; }
Property Value
Override ToString to be useful for debugging.
public override string ToString()
Returns
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4