ConnectionOrientedTransportBindingElement.CanBuildChannelListener<TChannel>(BindingContext) Método

Definição

Determina se um ouvinte de canais do tipo especificado pode ser criado.Determines whether a channel listener of the specified type can be built.

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel override bool CanBuildChannelListener(System::ServiceModel::Channels::BindingContext ^ context);
public override bool CanBuildChannelListener<TChannel> (System.ServiceModel.Channels.BindingContext context) where TChannel : class, System.ServiceModel.Channels.IChannel;
override this.CanBuildChannelListener : System.ServiceModel.Channels.BindingContext -> bool (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overrides Function CanBuildChannelListener(Of TChannel As {Class, IChannel}) (context As BindingContext) As Boolean

Parâmetros de tipo

TChannel

O tipo de canal a ser verificado.The type of channel to check.

Parâmetros

context
BindingContext

O BindingContext do canal.The BindingContext for the channel.

Retornos

Boolean

true se um ouvinte de canais puder ser criado; caso contrário false.true if a channel listener can be built; otherwise false.

Exceções

context é null.context is null.

Comentários

Você deve chamar esse método antes de tentar criar um ouvinte de canal.You should call this method before trying to create a channel listener.

Se TChannel IDuplexSessionChannel esse método for retornado true somente quando estiver no modo de buffer.If TChannel is IDuplexSessionChannel this method returns true only when in buffered mode. Se TChannel IReplyChannel esse método for retornado true somente quando estiver no modo de streaming.If TChannel is IReplyChannel this method returns true only when in streaming mode.

Aplica-se a