Show / Hide Table of Contents

Interface ISenderLink

Represents an AMQP sender link.

Inherited Members
ILink.Name
ILink.Detach(Error)
ILink.DetachAsync(Error)
IAmqpObject.Closed
IAmqpObject.Error
IAmqpObject.IsClosed
IAmqpObject.AddClosedCallback(ClosedCallback)
IAmqpObject.Close()
IAmqpObject.Close(TimeSpan, Error)
IAmqpObject.CloseAsync()
IAmqpObject.CloseAsync(TimeSpan, Error)
Namespace: Amqp
Assembly: Amqp.Net.dll
Syntax
public interface ISenderLink : ILink, IAmqpObject

Methods

Send(Message)

Sends a message and synchronously waits for an acknowledgement. Throws TimeoutException if ack is not received after a default timeout.

Declaration
void Send(Message message)
Parameters
Type Name Description
Message message

The message to send.

Send(Message, OutcomeCallback, Object)

Sends a message asynchronously. If callback is null, the message is sent without requesting for an acknowledgement (best effort).

Declaration
void Send(Message message, OutcomeCallback callback, object state)
Parameters
Type Name Description
Message message

The message to send.

OutcomeCallback callback

The callback to invoke when acknowledgement is received.

System.Object state

The object that is passed back to the outcome callback.

Send(Message, TimeSpan)

Sends a message and synchronously waits for an acknowledgement. Throws TimeoutException if ack is not received in the specified time.

Declaration
void Send(Message message, TimeSpan timeout)
Parameters
Type Name Description
Message message

The message to send.

System.TimeSpan timeout

The time to wait for the acknowledgement.

SendAsync(Message)

Sends a message asynchronously using a default timeout.

Declaration
Task SendAsync(Message message)
Parameters
Type Name Description
Message message

The message to send.

Returns
Type Description
System.Threading.Tasks.Task

A Task for the asynchronous send operation.

SendAsync(Message, TimeSpan)

Sends a message asynchronously.

Declaration
Task SendAsync(Message message, TimeSpan timeout)
Parameters
Type Name Description
Message message

The message to send.

System.TimeSpan timeout

The time to wait for the task to complete.

Returns
Type Description
System.Threading.Tasks.Task

A Task for the asynchronous send operation.

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