C# Class Amqp.TaskExtensions

Provides extension methods.
Mostra file Open project: xamarin/mini-hacks Class Usage Examples

Public Methods

Method Description
CloseAsync ( this amqpObject, int timeout = 60000 ) : System.Threading.Tasks.Task

Closes an AMQP object asynchronously.

ReceiveAsync ( this receiver, int timeout = 60000 ) : Task

Receives a message asynchronously.

SendAsync ( this sender, Amqp.Message message ) : System.Threading.Tasks.Task

Sends a message asynchronously.

Private Methods

Method Description
AuthenticateAsClientAsync ( this source, string targetHost ) : System.Threading.Tasks.Task
AuthenticateAsClientAsync ( this source, string targetHost, System clientCertificates, System enabledSslProtocols, bool checkCertificateRevocation ) : System.Threading.Tasks.Task
AuthenticateAsServerAsync ( this source, System serverCertificate ) : System.Threading.Tasks.Task
AuthenticateAsServerAsync ( this source, System serverCertificate, bool clientCertificateRequired, System enabledSslProtocols, bool checkCertificateRevocation ) : System.Threading.Tasks.Task
ContinueWith ( this task, object>.Action action, object state ) : System.Threading.Tasks.Task
GetByteBuffer ( this bufferManager, int size ) : ByteBuffer
GetHostAddressesAsync ( string host ) : Task
GetHostEntryAsync ( string host ) : Task
GetTransactionalStateAsync ( SenderLink sender ) : Task
OpenAsync ( this saslProfile, string hostname, IBufferManager bufferManager, IAsyncTransport transport ) : Task
ReadAsync ( this source, byte buffer, int offset, int count ) : Task
WriteAsync ( this source, byte buffer, int offset, int count ) : System.Threading.Tasks.Task

Method Details

CloseAsync() public static method

Closes an AMQP object asynchronously.
public static CloseAsync ( this amqpObject, int timeout = 60000 ) : System.Threading.Tasks.Task
amqpObject this The object to close.
timeout int The timeout in seconds.
return System.Threading.Tasks.Task

ReceiveAsync() public static method

Receives a message asynchronously.
public static ReceiveAsync ( this receiver, int timeout = 60000 ) : Task
receiver this The link.
timeout int The timeout in seconds.
return Task

SendAsync() public static method

Sends a message asynchronously.
public static SendAsync ( this sender, Amqp.Message message ) : System.Threading.Tasks.Task
sender this The link.
message Amqp.Message The message.
return System.Threading.Tasks.Task