Interface IAsyncTransport
Provides asynchronous I/O calls.
Inherited Members
Namespace: Amqp
Assembly: Amqp.Net.dll
Syntax
public interface IAsyncTransport : ITransport
Methods
ReceiveAsync(Byte[], Int32, Int32)
Reads bytes into a buffer asynchronously.
Declaration
Task<int> ReceiveAsync(byte[] buffer, int offset, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | The buffer to store data. |
System.Int32 | offset | The buffer offset where data starts. |
System.Int32 | count | The number of bytes to read. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int32> | A task for the receive operation. The result is the actual bytes read from the transport. |
SendAsync(IList<ByteBuffer>, Int32)
Sends a list of buffers asynchronously.
Declaration
Task SendAsync(IList<ByteBuffer> bufferList, int listSize)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<ByteBuffer> | bufferList | The list of buffers to send. |
System.Int32 | listSize | Number of bytes of all buffers in bufferList. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task for the send operation. |
SetConnection(Connection)
Sets a connection to the transport.
Declaration
void SetConnection(Connection connection)
Parameters
Type | Name | Description |
---|---|---|
Connection | connection | The Connection to attach to the transport. |