C# 클래스 Amqp.Connection

The Connection class represents an AMQP connection.
상속: Amqp.AmqpObject
파일 보기 프로젝트 열기: xamarin/mini-hacks 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DisableServerCertValidation bool

Private Properties

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
OnClose ( Error error ) : bool

Closes the connection.

비공개 메소드들

메소드 설명
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

메소드 상세

Connection() 공개 메소드

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.
리턴 System

Connection() 공개 메소드

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).
리턴 System

OnClose() 보호된 메소드

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

프로퍼티 상세

DisableServerCertValidation 공개적으로 정적으로 프로퍼티

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