Builds the channel listener on the service that accepts a specified type of
channel for a specified context.
public override System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<>(
System.ServiceModel.Channels.BindingContext
)
where TChannel: class, System.ServiceModel.Channels.IChannel
public function BuildChannelListener(
: System.ServiceModel.Channels.BindingContext
): System.ServiceModel.Channels.IChannelListener; override;
public override function BuildChannelListener(
: System.ServiceModel.Channels.BindingContext
) : System.ServiceModel.Channels.IChannelListener;
public: System.ServiceModel.Channels.IChannelListener<TChannel*>* BuildChannelListener<>(
System.ServiceModel.Channels.BindingContext*
) override
where TChannel: ref class, System.ServiceModel.Channels.IChannel
public:
System.ServiceModel.Channels.IChannelListener<TChannel^>^ BuildChannelListenergeneric<typename >
(
System.ServiceModel.Channels.BindingContext^
) override
where TChannel: ref class, System.ServiceModel.Channels.IChannel
'Declaration
Public Overrides Function BuildChannelListener(Of As {Class, System.ServiceModel.Channels.IChannel})( _
ByVal As System.ServiceModel.Channels.BindingContext _
) As System.ServiceModel.Channels.IChannelListener(Of TChannel)
'Usage
Dim instance As SoapTcpTransportBindingElement
Dim context As System.ServiceModel.Channels.BindingContext
Dim value As System.ServiceModel.Channels.IChannelListener(Of TChannel)
value = instance.BuildChannelListener(Of TChannel)(context)
Parameters
- context
- The BindingContext for the listener.
Type Parameters
- TChannel
- The type of channel the channel listener accepts
Return Value
An IChannelListener of type TChannel for the specified context
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2