SubscriptionClient.Defer Method

Definition

Overloads

Defer(Guid)

Suspends the processing of a message.

Defer(Guid, IDictionary<String,Object>)

Suspends the processing of a message.

Defer(Guid)

Suspends the processing of a message.

public void Defer (Guid lockToken);
Parameters
lockToken
Guid

The lock token bound to the locked message instance.

Exceptions

Thrown if the operation exceeded the timeout value set by OperationTimeout.

Thrown if the client entity has been closed or aborted.

Thrown if the message represented by lockToken has lost the message lock.

Remarks

Before deferring, you should set aside the message receipt for later retrieval.

Defer(Guid, IDictionary<String,Object>)

Suspends the processing of a message.

public void Defer (Guid lockToken, System.Collections.Generic.IDictionary<string,object> propertiesToModify);
Parameters
lockToken
Guid

The lock token bound to the locked message instance.

propertiesToModify
IDictionary<String,Object>

The properties to modify.

Remarks

Before deferring, you should set aside the message receipt for later retrieval.