IDefaultCommunicationTimeouts Interface

Definição

Define a interface para especificar tempos limite de comunicação usados pelos canais, os gerentes de canal como ouvintes de canais, fábricas de canais e hosts de serviço.Defines the interface for specifying communication timeouts used by channels, channel managers such as channel listeners and channel factories, and service hosts.

public interface class IDefaultCommunicationTimeouts
public interface IDefaultCommunicationTimeouts
type IDefaultCommunicationTimeouts = interface
Public Interface IDefaultCommunicationTimeouts
Derivado

Comentários

Essa interface tem quatro propriedades somente leitura que fornecem valores de tempo limite padrão para os métodos abrir, enviar, receber e fechar que podem ser chamados em um objeto de comunicação.This interface has four read-only properties that provide default timeout values for the open, send, receive, and close methods that can be called on a communication object. Cada implementação é responsável por obter os valores padrão de qualquer maneira que seja apropriada para a implementação.Each implementation is responsible for obtaining the default values in whatever manner is appropriate for the implementation. Essa interface é implementada pelo ChannelBase , a implementação base para a gravação de canais personalizados e o ChannelManagerBase , a implementação base para a gravação de gerenciadores de canal personalizados que derivam de ChannelFactoryBase e ChannelListenerBase .This interface is implemented by ChannelBase, the base implementation for writing custom channels, and the ChannelManagerBase, the base implementation for writing custom channel managers which derive from ChannelFactoryBase and ChannelListenerBase. A interface também é implementada pela Binding classe e, em seguida, herdada a partir daí CustomBinding e as associações fornecidas pelo sistema, como BasicHttpBinding .The interface is also implemented by the Binding class and then inherited from there by CustomBinding and the system-provided bindings, such as BasicHttpBinding.

Ao usar canais diretamente, você tem a capacidade de especificar explicitamente os tempos limite em uma base por canal ou por operação, ou em qualquer outra base personalizada.When you use channels directly, you have the ability to explicitly specify timeouts on a per-channel or per-operation-basis, or on any other custom basis. Ao usar o modelo de canal, os tempos limite são bastante acessíveis quando você deseja controlá-los.When using the channel model, timeouts are quite accessible when you want to control them.

Ao usar o modelo de serviço, por outro lado, você programará em relação a serviços e contratos, e os tempos limite serão mais em segundo plano.When using the service model, on the other hand, you program against services and contracts, and timeouts are more in the background. Eles são controlados pela infra-estrutura de infraestrutura que flui o tempo limite do local para o local em seu nome.They are controlled by the infrastructure machinery which flows timeouts from place to place on your behalf. IDefaultCommunicationTimeouts é um mecanismo para fornecer esse fluxo.IDefaultCommunicationTimeouts is one mechanism for providing that flow.

Propriedades

CloseTimeout

Obtém o intervalo de tempo após o qual o tempo limite do método close, invocado por um objeto de comunicação, é atingido.Gets the interval of time after which the close method, invoked by a communication object, times out.

OpenTimeout

Obtém o intervalo de tempo após o qual o tempo limite do método open, invocado por um objeto de comunicação, é atingido.Gets the interval of time after which the open method, invoked by a communication object, times out.

ReceiveTimeout

Obtém o intervalo de tempo após o qual o tempo limite do método receive, invocado por um objeto de comunicação, é atingido.Gets the interval of time after which the receive method, invoked by a communication object, times out.

SendTimeout

Obtém o intervalo de tempo após o qual o tempo limite do método send, invocado por um objeto de comunicação, é atingido.Gets the interval of time after which the send method, invoked by a communication object, times out.

Aplica-se a