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 bool IsInitiating { get; set; }

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.

참고

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

제품 버전
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1