Binding.BuildChannelListener 方法

定义

在接受指定类型的通道且满足指定功能的服务上生成通道侦听器。

重载

名称 说明
BuildChannelListener<TChannel>(Object[])

在接受指定类型的通道且满足指定功能的服务上生成通道侦听器。

BuildChannelListener<TChannel>(BindingParameterCollection)

在接受指定类型的通道的服务上生成通道侦听器,并满足绑定参数集合指定的功能。

BuildChannelListener<TChannel>(Uri, Object[])

在接受指定类型的通道且满足指定功能的服务上生成通道侦听器。

BuildChannelListener<TChannel>(Uri, BindingParameterCollection)

在接受指定类型的通道且满足指定功能的服务上生成通道侦听器。

BuildChannelListener<TChannel>(Uri, String, Object[])

在接受指定类型的通道且满足指定功能的服务上生成通道侦听器。

BuildChannelListener<TChannel>(Uri, String, BindingParameterCollection)

在接受指定类型的通道且满足指定功能的服务上生成通道侦听器。

BuildChannelListener<TChannel>(Uri, String, ListenUriMode, Object[])

在接受指定类型的通道且满足指定功能的服务上生成通道侦听器。

BuildChannelListener<TChannel>(Uri, String, ListenUriMode, BindingParameterCollection)

在接受指定类型的通道且满足指定功能的服务上生成通道侦听器。

BuildChannelListener<TChannel>(Object[])

在接受指定类型的通道且满足指定功能的服务上生成通道侦听器。

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel virtual System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(... cli::array <System::Object ^> ^ parameters);
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(params object[] parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListener : obj[] -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
override this.BuildChannelListener : obj[] -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) (ParamArray parameters As Object()) As IChannelListener(Of TChannel)

类型参数

TChannel

通道侦听器接受的通道类型。

参数

parameters
Object[]

指定生成通道工厂的要求的对象数组。

返回

IChannelListener<TChannel>满足指定功能的类型TChannel

例外

传输元素缺失或无序或方案无效,或者未指定消息版本。

适用于

BuildChannelListener<TChannel>(BindingParameterCollection)

在接受指定类型的通道的服务上生成通道侦听器,并满足绑定参数集合指定的功能。

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel virtual System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(System::ServiceModel::Channels::BindingParameterCollection ^ parameters);
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(System.ServiceModel.Channels.BindingParameterCollection parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListener : System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
override this.BuildChannelListener : System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) (parameters As BindingParameterCollection) As IChannelListener(Of TChannel)

类型参数

TChannel

通道侦听器接受的通道类型。

参数

parameters
BindingParameterCollection

指定 BindingParameterCollection 生成的通道侦听器的要求。

返回

IChannelListener<TChannel>满足指定功能的类型TChannel

例外

传输元素缺失或无序或方案无效,或者未指定消息版本。

适用于

BuildChannelListener<TChannel>(Uri, Object[])

在接受指定类型的通道且满足指定功能的服务上生成通道侦听器。

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel virtual System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(Uri ^ listenUriBaseAddress, ... cli::array <System::Object ^> ^ parameters);
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(Uri listenUriBaseAddress, params object[] parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListener : Uri * obj[] -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
override this.BuildChannelListener : Uri * obj[] -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) (listenUriBaseAddress As Uri, ParamArray parameters As Object()) As IChannelListener(Of TChannel)

类型参数

TChannel

通道侦听器接受的通道类型。

参数

listenUriBaseAddress
Uri

提供 Uri 服务侦听的基址。

parameters
Object[]

指定生成的通道工厂的要求的对象数组。

返回

IChannelListener<TChannel>满足指定功能的类型TChannel

例外

传输元素缺失或无序或方案无效,或者未指定消息版本。

适用于

BuildChannelListener<TChannel>(Uri, BindingParameterCollection)

在接受指定类型的通道且满足指定功能的服务上生成通道侦听器。

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel virtual System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(Uri ^ listenUriBaseAddress, System::ServiceModel::Channels::BindingParameterCollection ^ parameters);
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(Uri listenUriBaseAddress, System.ServiceModel.Channels.BindingParameterCollection parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListener : Uri * System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
override this.BuildChannelListener : Uri * System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) (listenUriBaseAddress As Uri, parameters As BindingParameterCollection) As IChannelListener(Of TChannel)

类型参数

TChannel

通道侦听器接受的通道类型。

参数

listenUriBaseAddress
Uri

提供 Uri 服务侦听的基址。

parameters
BindingParameterCollection

指定 BindingParameterCollection 生成的通道侦听器的要求。

返回

IChannelListener<TChannel>满足指定功能的类型TChannel

例外

传输元素缺失或无序或方案无效,或者未指定消息版本。

适用于

BuildChannelListener<TChannel>(Uri, String, Object[])

在接受指定类型的通道且满足指定功能的服务上生成通道侦听器。

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel virtual System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(Uri ^ listenUriBaseAddress, System::String ^ listenUriRelativeAddress, ... cli::array <System::Object ^> ^ parameters);
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(Uri listenUriBaseAddress, string listenUriRelativeAddress, params object[] parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListener : Uri * string * obj[] -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
override this.BuildChannelListener : Uri * string * obj[] -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) (listenUriBaseAddress As Uri, listenUriRelativeAddress As String, ParamArray parameters As Object()) As IChannelListener(Of TChannel)

类型参数

TChannel

通道侦听器接受的通道类型。

参数

listenUriBaseAddress
Uri

提供 Uri 服务侦听的基址。

listenUriRelativeAddress
String

相对于服务侦听的基址的地址。

parameters
Object[]

指定生成的通道工厂的要求的对象数组。

返回

IChannelListener<TChannel>满足指定功能的类型TChannel

例外

传输元素缺失或无序或方案无效,或者未指定消息版本。

适用于

BuildChannelListener<TChannel>(Uri, String, BindingParameterCollection)

在接受指定类型的通道且满足指定功能的服务上生成通道侦听器。

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel virtual System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(Uri ^ listenUriBaseAddress, System::String ^ listenUriRelativeAddress, System::ServiceModel::Channels::BindingParameterCollection ^ parameters);
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(Uri listenUriBaseAddress, string listenUriRelativeAddress, System.ServiceModel.Channels.BindingParameterCollection parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListener : Uri * string * System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
override this.BuildChannelListener : Uri * string * System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) (listenUriBaseAddress As Uri, listenUriRelativeAddress As String, parameters As BindingParameterCollection) As IChannelListener(Of TChannel)

类型参数

TChannel

通道侦听器接受的通道类型。

参数

listenUriBaseAddress
Uri

提供 Uri 服务侦听的基址。

listenUriRelativeAddress
String

相对于服务侦听的基址的地址。

parameters
BindingParameterCollection

指定 BindingParameterCollection 生成的通道侦听器的要求。

返回

IChannelListener<TChannel>满足指定功能的类型TChannel

例外

传输元素缺失或无序或方案无效,或者未指定消息版本。

适用于

BuildChannelListener<TChannel>(Uri, String, ListenUriMode, Object[])

在接受指定类型的通道且满足指定功能的服务上生成通道侦听器。

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel virtual System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(Uri ^ listenUriBaseAddress, System::String ^ listenUriRelativeAddress, System::ServiceModel::Description::ListenUriMode listenUriMode, ... cli::array <System::Object ^> ^ parameters);
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(Uri listenUriBaseAddress, string listenUriRelativeAddress, System.ServiceModel.Description.ListenUriMode listenUriMode, params object[] parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListener : Uri * string * System.ServiceModel.Description.ListenUriMode * obj[] -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
override this.BuildChannelListener : Uri * string * System.ServiceModel.Description.ListenUriMode * obj[] -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) (listenUriBaseAddress As Uri, listenUriRelativeAddress As String, listenUriMode As ListenUriMode, ParamArray parameters As Object()) As IChannelListener(Of TChannel)

类型参数

TChannel

通道侦听器接受的通道类型。

参数

listenUriBaseAddress
Uri

提供 Uri 服务侦听的基址。

listenUriRelativeAddress
String

相对于服务侦听的基址的地址。

listenUriMode
ListenUriMode

一个值 ListenUriMode ,该值指示传输是否必须确保为服务侦听提供的 URI 是唯一的,也可以完全按提供方式使用。

parameters
Object[]

指定生成的通道工厂的要求的对象数组。

返回

IChannelListener<TChannel>满足指定功能的类型TChannel

例外

传输元素缺失或无序或方案无效,或者未指定消息版本。

适用于

BuildChannelListener<TChannel>(Uri, String, ListenUriMode, BindingParameterCollection)

在接受指定类型的通道且满足指定功能的服务上生成通道侦听器。

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel virtual System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(Uri ^ listenUriBaseAddress, System::String ^ listenUriRelativeAddress, System::ServiceModel::Description::ListenUriMode listenUriMode, System::ServiceModel::Channels::BindingParameterCollection ^ parameters);
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(Uri listenUriBaseAddress, string listenUriRelativeAddress, System.ServiceModel.Description.ListenUriMode listenUriMode, System.ServiceModel.Channels.BindingParameterCollection parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListener : Uri * string * System.ServiceModel.Description.ListenUriMode * System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
override this.BuildChannelListener : Uri * string * System.ServiceModel.Description.ListenUriMode * System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) (listenUriBaseAddress As Uri, listenUriRelativeAddress As String, listenUriMode As ListenUriMode, parameters As BindingParameterCollection) As IChannelListener(Of TChannel)

类型参数

TChannel

通道侦听器接受的通道类型。

参数

listenUriBaseAddress
Uri

提供 Uri 服务侦听的基址。

listenUriRelativeAddress
String

相对于服务侦听的基址的地址。

listenUriMode
ListenUriMode

一个值 ListenUriMode ,该值指示传输是否必须确保为服务侦听提供的 URI 是唯一的,也可以完全按提供方式使用。

parameters
BindingParameterCollection

指定 BindingParameterCollection 生成的通道侦听器的要求。

返回

IChannelListener<TChannel>满足指定功能的类型TChannel

例外

传输元素缺失或无序或方案无效,或者未指定消息版本。

适用于