Метод |
Описание |
|
Abort ( ) : void |
API-side invocation of connection abort. |
|
Abort ( int timeout ) : void |
API-side invocation of connection abort with timeout. |
|
Abort ( ushort reasonCode, string reasonText ) : void |
API-side invocation of connection abort. |
|
Abort ( ushort reasonCode, string reasonText, ShutdownInitiator initiator, int timeout ) : void |
|
|
Abort ( ushort reasonCode, string reasonText, int timeout ) : void |
API-side invocation of connection abort with timeout. |
|
Close ( ) : void |
API-side invocation of connection.close. |
|
Close ( ShutdownEventArgs reason ) : void |
|
|
Close ( ShutdownEventArgs reason, bool abort, int timeout ) : void |
Try to close connection in a graceful way Shutdown reason contains code and text assigned when closing the connection, as well as the information about what initiated the close Abort flag, if true, signals to close the ongoing connection immediately and do not report any errors if it was already closed. Timeout determines how much time internal close operations should be given to complete. Negative or Timeout.Infinite value mean infinity. |
|
Close ( int timeout ) : void |
API-side invocation of connection.close with timeout. |
|
Close ( ushort reasonCode, string reasonText ) : void |
API-side invocation of connection.close. |
|
Close ( ushort reasonCode, string reasonText, int timeout ) : void |
API-side invocation of connection.close with timeout. |
|
ClosingLoop ( ) : void |
Loop only used while quiescing. Use only to cleanly close connection |
|
Connection ( IConnectionFactory factory, bool insist, IFrameHandler frameHandler, string clientProvidedName = null ) : System.Threading.Tasks |
|
|
ConnectionCloseWrapper ( ushort reasonCode, string reasonText ) : Command |
|
|
CreateModel ( ) : IModel |
|
|
CreateSession ( ) : ISession |
|
|
CreateSession ( int channelNumber ) : ISession |
|
|
DefaultClientProperties ( ) : object>.IDictionary |
|
|
EnsureIsOpen ( ) : void |
|
|
FinishClose ( ) : void |
|
|
HandleApplicationSuspend ( object sender, SuspendingEventArgs suspendingEventArgs ) : void |
We need to close the socket, otherwise suspending the application will take the maximum time allowed |
|
HandleConnectionBlocked ( string reason ) : void |
|
|
HandleConnectionUnblocked ( ) : void |
|
|
HandleDomainUnload ( object sender, EventArgs ea ) : void |
We need to close the socket, otherwise attempting to unload the domain could cause a CannotUnloadAppDomainException |
|
HandleMainLoopException ( ShutdownEventArgs reason ) : void |
|
|
HardProtocolExceptionHandler ( RabbitMQ.Client.Impl.HardProtocolException hpe ) : bool |
|
|
HeartbeatReadTimerCallback ( object state ) : void |
|
|
HeartbeatWriteTimerCallback ( object state ) : void |
|
|
InternalClose ( ShutdownEventArgs reason ) : void |
|
|
LogCloseError ( String error, Exception ex ) : void |
|
|
MainLoop ( ) : void |
|
|
MainLoopIteration ( ) : void |
|
|
MaybeStartHeartbeatTimers ( ) : void |
|
|
NotifyHeartbeatListener ( ) : void |
|
|
NotifyReceivedCloseOk ( ) : void |
|
|
OnCallbackException ( RabbitMQ.Client.Events.CallbackExceptionEventArgs args ) : void |
|
|
OnConnectionBlocked ( RabbitMQ.Client.Events.ConnectionBlockedEventArgs args ) : void |
|
|
OnConnectionUnblocked ( ) : void |
|
|
OnShutdown ( ) : void |
Broadcasts notification of the final shutdown of the connection. |
|
Open ( bool insist ) : void |
|
|
PrettyPrintShutdownReport ( ) : void |
|
|
QuiesceChannel ( RabbitMQ.Client.Impl.SoftProtocolException pe ) : void |
Sets the channel named in the SoftProtocolException into "quiescing mode", where we issue a channel.close and ignore everything except for subsequent channel.close messages and the channel.close-ok reply that should eventually arrive. Since a well-behaved peer will not wait indefinitely before issuing the close-ok, we don't bother with a timeout here; compare this to the case of a connection.close-ok, where a timeout is necessary. We need to send the close method and politely wait for a reply before marking the channel as available for reuse. As soon as SoftProtocolException is detected, we should stop servicing ordinary application work, and should concentrate on bringing down the channel as quickly and gracefully as possible. The way this is done, as per the close-protocol, is to signal closure up the stack *before* sending the channel.close, by invoking ISession.Close. Once the upper layers have been signalled, we are free to do what we need to do to clean up and shut down the channel. |
|
SetCloseReason ( ShutdownEventArgs reason ) : bool |
|
|
StartMainLoop ( bool useBackgroundThread ) : void |
|
|
TerminateMainloop ( ) : void |
May be called more than once. Should therefore be idempotent. |
|
ToString ( ) : string |
|
|
WriteFrame ( Frame f ) : void |
|
|
WriteFrameSet ( IList f ) : void |
|
|