C# Class Amqp.Session

The Session class represents an AMQP session.
Inheritance: Amqp.AmqpObject
Show file Open project: xamarin/mini-hacks Class Usage Examples

Private Properties

Property Type Description
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

Public Methods

Method Description
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.

Protected Methods

Method Description
OnClose ( Error error ) : bool

Closes the session.

Private Methods

Method Description
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

Method Details

OnClose() protected method

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

Session() public method

Initializes a session object.
public Session ( Connection connection ) : System
connection Connection The connection within which to create the session.
return System

Session() public method

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.
return System