Show / Hide Table of Contents

Class Session

The Session class represents an AMQP session.

Inheritance
System.Object
AmqpObject
Session
ListenerSession
Implements
ISession
IAmqpObject
Inherited Members
AmqpObject.Closed
AmqpObject.Error
AmqpObject.IsClosed
AmqpObject.AddClosedCallback(ClosedCallback)
AmqpObject.Close()
AmqpObject.Close(TimeSpan, Error)
AmqpObject.CloseAsync()
AmqpObject.CloseAsync(TimeSpan, Error)
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Amqp
Assembly: Amqp.Net.dll
Syntax
public class Session : AmqpObject, ISession, IAmqpObject

Constructors

Session(Connection)

Initializes a session object.

Declaration
public Session(Connection connection)
Parameters
Type Name Description
Connection connection

The connection within which to create the session.

Session(Connection, Begin, OnBegin)

Initializes a session object with a custom Begin performative.

Declaration
public Session(Connection connection, Begin begin, OnBegin onBegin)
Parameters
Type Name Description
Connection connection

The connection in which the session will be created.

Begin begin

The Begin performative to be sent to the remote peer.

OnBegin onBegin

The callback to invoke when a begin is received from peer.

Properties

Connection

Gets the connection where the session was created.

Declaration
public Connection Connection { get; }
Property Value
Type Description
Connection

SessionState

Get the session state.

Declaration
public SessionState SessionState { get; }
Property Value
Type Description
SessionState

Methods

OnClose(Error)

Closes the session.

Declaration
protected override bool OnClose(Error error)
Parameters
Type Name Description
Error error

The error.

Returns
Type Description
System.Boolean
Overrides
AmqpObject.OnClose(Error)

Explicit Interface Implementations

ISession.CreateReceiver(String, Source, OnAttached)

Declaration
IReceiverLink ISession.CreateReceiver(string name, Source source, OnAttached onAttached)
Parameters
Type Name Description
System.String name
Source source
OnAttached onAttached
Returns
Type Description
IReceiverLink

ISession.CreateReceiver(String, String)

Declaration
IReceiverLink ISession.CreateReceiver(string name, string address)
Parameters
Type Name Description
System.String name
System.String address
Returns
Type Description
IReceiverLink

ISession.CreateSender(String, Target, OnAttached)

Declaration
ISenderLink ISession.CreateSender(string name, Target target, OnAttached onAttached)
Parameters
Type Name Description
System.String name
Target target
OnAttached onAttached
Returns
Type Description
ISenderLink

ISession.CreateSender(String, String)

Declaration
ISenderLink ISession.CreateSender(string name, string address)
Parameters
Type Name Description
System.String name
System.String address
Returns
Type Description
ISenderLink

Implements

ISession
IAmqpObject
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX