OperationDescription.IsInitiating Propriedade

Definição

Obtém ou define um valor que indica se o método implementa uma operação que pode iniciar uma sessão no servidor (se essa sessão existir).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

Valor da propriedade

Boolean

true se a operação tiver permissão para iniciar uma sessão no servidor, caso contrário, false.true if the operation is permitted to initiate a session on the server, otherwise, false. O padrão é true.The default is true.

Comentários

A IsInitiating propriedade controla se uma operação pode ser a primeira operação chamada quando uma sessão é criada.The IsInitiating property controls whether an operation can be the first operation called when a session is created.

Observação

O valor de ServiceContractAttribute.SessionMode deve ser true e a associação usada deve dar suporte a sessões para que a IsInitiating Propriedade funcione corretamente.The value of ServiceContractAttribute.SessionMode must be true and the binding used must support sessions for the IsInitiating property to work properly.

O padrão é true , o que significa que uma operação pode ser a primeira chamada em um canal.The default is true, which means that an operation can be the first one called on a channel. As chamadas subsequentes para o método de inicialização não têm nenhum efeito, além de chamar o método.Subsequent calls to the initiating method have no effect, other than to call the method. Nenhuma outra sessão é criada.No other sessions are created.

Normalmente, você define IsInitiating como false forçar os clientes a chamar outro método no serviço antes que eles possam chamá-lo.Typically, you set IsInitiating to false to force clients to call another method on the service before they can invoke this one.

IsInitiating corresponde à IsInitiating propriedade no modelo de programação Windows Communication Foundation (WCF).IsInitiating corresponds to the IsInitiating property in the Windows Communication Foundation (WCF) programming model.

Aplica-se a