Interface ISession
Represents an AMQP session.
Inherited Members
Namespace: Amqp
Assembly: Amqp.Net.dll
Syntax
public interface ISession : IAmqpObject
Methods
CreateReceiver(String, Source, OnAttached)
Creates a receiver link in the session.
Declaration
IReceiverLink CreateReceiver(string name, Source source, OnAttached onAttached = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The link name. |
Source | source | The source where to receive messages. |
OnAttached | onAttached | The callback that is invoked when an attach performative is received from the peer. |
Returns
Type | Description |
---|---|
IReceiverLink | An IReceiverLink object. |
CreateReceiver(String, String)
Creates a receiver link in the session.
Declaration
IReceiverLink CreateReceiver(string name, string address)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The link name. |
System.String | address | The source address where to receive messages. |
Returns
Type | Description |
---|---|
IReceiverLink | An IReceiverLink object. |
CreateSender(String, Target, OnAttached)
Creates a sender link in the session.
Declaration
ISenderLink CreateSender(string name, Target target, OnAttached onAttached = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The link name. |
Target | target | The target where to send messages. |
OnAttached | onAttached | The callback that is invoked when an attach performative is received from the peer. |
Returns
Type | Description |
---|---|
ISenderLink | An ISenderLink object. |
CreateSender(String, String)
Creates a sender link in the session.
Declaration
ISenderLink CreateSender(string name, string address)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The link name. |
System.String | address | The target address where to send messages. |
Returns
Type | Description |
---|---|
ISenderLink | An ISenderLink object. |