WCF-Xtensions Class Reference for .NET
BuildChannelListener<TChannel> Method (CompressionBindingElement)






The type of channel the channel listener accepts
The BindingContext for the listener.
Builds the channel listener on the service that accepts a specified type of channel for a specified context.
Syntax
public override System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>( 
   System.ServiceModel.Channels.BindingContext context
)
where TChannel: class, System.ServiceModel.Channels.IChannel
public function BuildChannelListener( 
    context: System.ServiceModel.Channels.BindingContext
): System.ServiceModel.Channels.IChannelListener; override; 
public override function BuildChannelListener( 
   context : System.ServiceModel.Channels.BindingContext
) : System.ServiceModel.Channels.IChannelListener;
public: System.ServiceModel.Channels.IChannelListener<TChannel*>* BuildChannelListener<TChannel>( 
   System.ServiceModel.Channels.BindingContext* context
) override 
where TChannel: ref class, System.ServiceModel.Channels.IChannel
public:
System.ServiceModel.Channels.IChannelListener<TChannel^>^ BuildChannelListenergeneric<typename TChannel>
( 
   System.ServiceModel.Channels.BindingContext^ context
) override 
where TChannel: ref class, System.ServiceModel.Channels.IChannel
'Declaration
 
Public Overrides Function BuildChannelListener(Of TChannel As {Class, System.ServiceModel.Channels.IChannel})( _
   ByVal context As System.ServiceModel.Channels.BindingContext _
) As System.ServiceModel.Channels.IChannelListener(Of TChannel)
 
'Usage
 
Dim instance As CompressionBindingElement
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
Requirements

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

See Also

Reference

CompressionBindingElement Class
CompressionBindingElement Members
Base Implementation in BuildChannelListener<TChannel>

Send Feedback