SynchronousReceiveBehavior Classe

Definição

Controla se os canais escutam de forma síncrona ou assíncrona.Controls whether channels listen synchronously or asynchronously.

public ref class SynchronousReceiveBehavior : System::ServiceModel::Description::IEndpointBehavior
public class SynchronousReceiveBehavior : System.ServiceModel.Description.IEndpointBehavior
type SynchronousReceiveBehavior = class
    interface IEndpointBehavior
Public Class SynchronousReceiveBehavior
Implements IEndpointBehavior
Herança
SynchronousReceiveBehavior
Implementações

Comentários

Use esse comportamento para instruir o ouvinte de canal a usar um recebimento síncrono, em vez do padrão, assíncrono.Use this behavior to instruct the channel listener to use a synchronous receive rather than the default, asynchronous. O uso SynchronousReceiveBehavior instrui o WCF a emitir um novo thread para bombeamento para cada canal aceito.Using SynchronousReceiveBehavior instructs WCF to issue a new thread to pump for each accepted channel. Se houver muitos canais, haverá a possibilidade de ficar sem threads.If there are a lot of channels there is the possibility of running out of threads.

Você também pode definir esse valor usando o < synchronousReceive > em um arquivo de configuração de aplicativo.You can also set this value using the <synchronousReceive> in an application configuration file.

Construtores

SynchronousReceiveBehavior()

Cria uma instância de SynchronousReceiveBehavior classe.Creates an instance of the SynchronousReceiveBehavior class.

Métodos

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object.

(Herdado de Object)
GetHashCode()

Serve como a função de hash padrão.Serves as the default hash function.

(Herdado de Object)
GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object.

(Herdado de Object)

Implantações explícitas de interface

IEndpointBehavior.AddBindingParameters(ServiceEndpoint, BindingParameterCollection)

Não implementado nesta classe.Not implemented in this class.

IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime)

Não implementado nesta classe.Not implemented in this class.

IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher)

Define a propriedade ReceiveSynchronously como true.Sets the ReceiveSynchronously property to true.

IEndpointBehavior.Validate(ServiceEndpoint)

Não implementado nesta classe.Not implemented in this class.

Aplica-se a