OperationDescription.IsInitiating Property

Definition

Gets or sets a value that indicates whether the method implements an operation that can initiate a session on the server (if such a session exists).

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

Property Value

true if the operation is permitted to initiate a session on the server, otherwise, false. The default is true.

Remarks

The IsInitiating property controls whether an operation can be the first operation called when a session is created.

Note

The value of ServiceContractAttribute.SessionMode must be true and the binding used must support sessions for the IsInitiating property to work properly.

The default is true, which means that an operation can be the first one called on a channel. Subsequent calls to the initiating method have no effect, other than to call the method. No other sessions are created.

Typically, you set IsInitiating to false to force clients to call another method on the service before they can invoke this one.

IsInitiating corresponds to the IsInitiating property in the Windows Communication Foundation (WCF) programming model.

Applies to