C# Класс Amqp.Session

The Session class represents an AMQP session.
Наследование: Amqp.AmqpObject
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Abort void
AddLink uint
AddRemoteLink void
CancelPendingDeliveries void
Default Amqp.Framing.Begin
DisposeDelivery void
GetLink Link
OnAttach void
OnBegin void
OnCommand void
OnDetach void
OnDispose void
OnEnd bool
OnFlow void
OnTransfer void
SendBegin void
SendCommand void
SendDelivery void
SendEnd void
SendFlow void
ThrowIfEnded void
WriteDelivery void

Открытые методы

Метод Описание
Session ( Connection connection ) : System

Initializes a session object.

Session ( Connection connection, Amqp.Framing.Begin begin, OnBegin onBegin ) : System

Initializes a session object with a custom Begin performative.

Защищенные методы

Метод Описание
OnClose ( Error error ) : bool

Closes the session.

Приватные методы

Метод Описание
Abort ( Error error ) : void
AddLink ( Link link ) : uint
AddRemoteLink ( uint remoteHandle, Link link ) : void
CancelPendingDeliveries ( Error error ) : void
Default ( Connection connection ) : Amqp.Framing.Begin
DisposeDelivery ( bool role, Amqp.Delivery delivery, Amqp.Framing.DeliveryState state, bool settled ) : void
GetLink ( uint remoteHandle ) : Link
OnAttach ( Amqp.Framing.Attach attach ) : void
OnBegin ( ushort remoteChannel, Amqp.Framing.Begin begin ) : void
OnCommand ( Amqp.Types.DescribedList command, ByteBuffer buffer ) : void
OnDetach ( Amqp.Framing.Detach detach ) : void
OnDispose ( Dispose dispose ) : void
OnEnd ( Amqp.Framing.End end ) : bool
OnFlow ( Amqp.Framing.Flow flow ) : void
OnTransfer ( Amqp.Framing.Transfer transfer, ByteBuffer buffer ) : void
SendBegin ( Amqp.Framing.Begin begin ) : void
SendCommand ( Amqp.Types.DescribedList command ) : void
SendDelivery ( Amqp.Delivery delivery ) : void
SendEnd ( ) : void
SendFlow ( Amqp.Framing.Flow flow ) : void
ThrowIfEnded ( string operation ) : void
WriteDelivery ( Amqp.Delivery delivery ) : void

Описание методов

OnClose() защищенный Метод

Closes the session.
protected OnClose ( Error error ) : bool
error Error The error.
Результат bool

Session() публичный Метод

Initializes a session object.
public Session ( Connection connection ) : System
connection Connection The connection within which to create the session.
Результат System

Session() публичный Метод

Initializes a session object with a custom Begin performative.
public Session ( Connection connection, Amqp.Framing.Begin begin, OnBegin onBegin ) : System
connection Connection The connection in which the session will be created.
begin Amqp.Framing.Begin The Begin performative to be sent to the remote peer.
onBegin OnBegin The callback to invoke when a begin is received from peer.
Результат System