C# Class Amqp.Connection

The Connection class represents an AMQP connection.
Inheritance: Amqp.AmqpObject
Datei anzeigen Open project: xamarin/mini-hacks Class Usage Examples

Public Properties

Property Type Description
DisableServerCertValidation bool

Private Properties

Property Type Description
AddSession ushort
AllocateBuffer ByteBuffer
Connect void
Connection System
Connection System
GetSession Session
OnBegin void
OnClose void
OnEnd void
OnEnded void
OnException void
OnFrame bool
OnHeader bool
OnHeartBeatTimer void
OnIoException void
OnOpen void
OnSessionCommand void
SendClose void
SendCommand int
SendCommand void
SendHeader void
SendOpen void
ThrowIfClosed void
WrapBuffer ByteBuffer

Public Methods

Method Description
Connection ( Address address ) : System

Initializes a connection from the address.

The connection initialization includes establishing the underlying transport, which typically has blocking network I/O. Depending on the current synchronization context, it may cause deadlock or UI freeze. Please use the ConnectionFactory.CreateAsync method instead.

Connection ( Address address, Amqp.Sasl.SaslProfile saslProfile, Amqp.Framing.Open open, OnOpened onOpened ) : System

Initializes a connection with SASL profile, open and open callback.

The connection initialization includes establishing the underlying transport, which typically has blocking network I/O. Depending on the current synchronization context, it may cause deadlock or UI freeze. Please use the ConnectionFactory.CreateAsync method instead.

Protected Methods

Method Description
OnClose ( Error error ) : bool

Closes the connection.

Private Methods

Method Description
AddSession ( Session session ) : ushort
AllocateBuffer ( int size ) : ByteBuffer
Connect ( Amqp.Sasl.SaslProfile saslProfile, Amqp.Framing.Open open ) : void
Connection ( IBufferManager bufferManager, AmqpSettings amqpSettings, Address address, IAsyncTransport transport, Amqp.Framing.Open open, OnOpened onOpened ) : System
Connection ( ushort channelMax, uint maxFrameSize ) : System
GetSession ( Session sessions, ushort channel ) : Session
OnBegin ( ushort remoteChannel, Amqp.Framing.Begin begin ) : void
OnClose ( Amqp.Framing.Close close ) : void
OnEnd ( ushort remoteChannel, Amqp.Framing.End end ) : void
OnEnded ( Error error ) : void
OnException ( Exception exception ) : void
OnFrame ( ByteBuffer buffer ) : bool
OnHeader ( Amqp.Framing.ProtocolHeader header ) : bool
OnHeartBeatTimer ( object state ) : void
OnIoException ( Exception exception ) : void
OnOpen ( Amqp.Framing.Open open ) : void
OnSessionCommand ( ushort remoteChannel, Amqp.Types.DescribedList command, ByteBuffer buffer ) : void
SendClose ( Error error ) : void
SendCommand ( ushort channel, Amqp.Framing.Transfer transfer, bool first, ByteBuffer payload, int reservedBytes ) : int
SendCommand ( ushort channel, Amqp.Types.DescribedList command ) : void
SendHeader ( ) : void
SendOpen ( Amqp.Framing.Open open ) : void
ThrowIfClosed ( string operation ) : void
WrapBuffer ( ByteBuffer buffer, int offset, int length ) : ByteBuffer

Method Details

Connection() public method

Initializes a connection from the address.
The connection initialization includes establishing the underlying transport, which typically has blocking network I/O. Depending on the current synchronization context, it may cause deadlock or UI freeze. Please use the ConnectionFactory.CreateAsync method instead.
public Connection ( Address address ) : System
address Address The address.
return System

Connection() public method

Initializes a connection with SASL profile, open and open callback.
The connection initialization includes establishing the underlying transport, which typically has blocking network I/O. Depending on the current synchronization context, it may cause deadlock or UI freeze. Please use the ConnectionFactory.CreateAsync method instead.
public Connection ( Address address, Amqp.Sasl.SaslProfile saslProfile, Amqp.Framing.Open open, OnOpened onOpened ) : System
address Address The address.
saslProfile Amqp.Sasl.SaslProfile The SASL profile to do authentication (optional). If it is /// null and address has user info, SASL PLAIN profile is used.
open Amqp.Framing.Open The open frame to send (optional). If not null, all mandatory /// fields must be set. Ensure that other fields are set to desired values.
onOpened OnOpened The callback to handle remote open frame (optional).
return System

OnClose() protected method

Closes the connection.
protected OnClose ( Error error ) : bool
error Error
return bool

Property Details

DisableServerCertValidation public_oe static_oe property

A flag to disable server certificate validation when TLS is used.
public static bool DisableServerCertValidation
return bool