Bewerken

Delen via


ReceiveContextEnabledAttribute.ManualControl Property

Definition

Gets or sets value that indicates whether the receive acknowledgement for this operation is explicitly signaled by service method.

public:
 property bool ManualControl { bool get(); void set(bool value); };
public bool ManualControl { get; set; }
member this.ManualControl : bool with get, set
Public Property ManualControl As Boolean

Property Value

true if the receive acknowledgement for this operation is explicitly signaled; otherwise, false.

Remarks

When the ManualControl property is set to true, the message received from the channel is delivered to the service operation with a lock for the message in the form of "ReceiveContext message property". It is the responsibility of the service implementation to either to call Complete or Abandon to signal the receive completion of the message. Failure to call either of these result in the lock being held on the message until the lock timeout interval elapses. Once the lock is released (either through calling Abandon or lock timeout) the message is re-dispatched from the channel to the service. Calling Complete marks the message as successfully received.

Applies to