Читати англійською Редагувати

Поділитися через


Binding.BuildChannelListener Method

Definition

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

Overloads

BuildChannelListener<TChannel>(Object[])

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

BuildChannelListener<TChannel>(BindingParameterCollection)

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified by a collection of binding parameters.

BuildChannelListener<TChannel>(Uri, Object[])

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

BuildChannelListener<TChannel>(Uri, BindingParameterCollection)

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

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

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

BuildChannelListener<TChannel>(Uri, String, BindingParameterCollection)

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

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

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

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

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

BuildChannelListener<TChannel>(Object[])

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

C#
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(params object[] parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;

Type Parameters

TChannel

The type of channel the channel listener accepts.

Parameters

parameters
Object[]

The object array that specifies requirements for the channel factory built.

Returns

An IChannelListener<TChannel> of type TChannel that satisfies the features specified.

Exceptions

Transport element is missing or out of order or scheme is invalid or the message version is not specified.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BuildChannelListener<TChannel>(BindingParameterCollection)

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified by a collection of binding parameters.

C#
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(System.ServiceModel.Channels.BindingParameterCollection parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;

Type Parameters

TChannel

The type of channel the channel listener accepts.

Parameters

parameters
BindingParameterCollection

The BindingParameterCollection that specifies requirements for the channel listener that is built.

Returns

An IChannelListener<TChannel> of type TChannel that satisfies the features specified.

Exceptions

Transport element is missing or out of order or scheme is invalid or the message version is not specified.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BuildChannelListener<TChannel>(Uri, Object[])

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

C#
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(Uri listenUriBaseAddress, params object[] parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;

Type Parameters

TChannel

The type of channel the channel listener accepts.

Parameters

listenUriBaseAddress
Uri

The Uri that provides the base address on which the service listens.

parameters
Object[]

The object array that specifies requirements for the channel factory that is built.

Returns

An IChannelListener<TChannel> of type TChannel that satisfies the features specified.

Exceptions

Transport element is missing or out of order or scheme is invalid or the message version is not specified.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BuildChannelListener<TChannel>(Uri, BindingParameterCollection)

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

C#
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(Uri listenUriBaseAddress, System.ServiceModel.Channels.BindingParameterCollection parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;

Type Parameters

TChannel

The type of channel the channel listener accepts.

Parameters

listenUriBaseAddress
Uri

The Uri that provides the base address on which the service listens.

parameters
BindingParameterCollection

The BindingParameterCollection that specifies requirements for the channel listener that is built.

Returns

An IChannelListener<TChannel> of type TChannel that satisfies the features specified.

Exceptions

Transport element is missing or out of order or scheme is invalid or the message version is not specified.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

C#
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(Uri listenUriBaseAddress, string listenUriRelativeAddress, params object[] parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;

Type Parameters

TChannel

The type of channel the channel listener accepts.

Parameters

listenUriBaseAddress
Uri

The Uri that provides the base address on which the service listens.

listenUriRelativeAddress
String

The address, relative to the base address, on which the service listens.

parameters
Object[]

The object array that specifies requirements for the channel factory that is built.

Returns

An IChannelListener<TChannel> of type TChannel that satisfies the features specified.

Exceptions

Transport element is missing or out of order or scheme is invalid or the message version is not specified.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BuildChannelListener<TChannel>(Uri, String, BindingParameterCollection)

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

C#
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;

Type Parameters

TChannel

The type of channel the channel listener accepts.

Parameters

listenUriBaseAddress
Uri

The Uri that provides the base address on which the service listens.

listenUriRelativeAddress
String

The address, relative to the base address, on which the service listens.

parameters
BindingParameterCollection

The BindingParameterCollection that specifies requirements for the channel listener that is built.

Returns

An IChannelListener<TChannel> of type TChannel that satisfies the features specified.

Exceptions

Transport element is missing or out of order or scheme is invalid or the message version is not specified.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

C#
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;

Type Parameters

TChannel

The type of channel the channel listener accepts.

Parameters

listenUriBaseAddress
Uri

The Uri that provides the base address on which the service listens.

listenUriRelativeAddress
String

The address, relative to the base address, on which the service listens.

listenUriMode
ListenUriMode

A value of the ListenUriMode that indicates whether the transport must ensure that the URI provided for the service to listen on is unique or can be used exactly as provided.

parameters
Object[]

The object array that specifies requirements for the channel factory that is built.

Returns

An IChannelListener<TChannel> of type TChannel that satisfies the features specified.

Exceptions

Transport element is missing or out of order or scheme is invalid or the message version is not specified.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

C#
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;

Type Parameters

TChannel

The type of channel the channel listener accepts.

Parameters

listenUriBaseAddress
Uri

The Uri that provides the base address on which the service listens.

listenUriRelativeAddress
String

The address, relative to the base address, on which the service listens.

listenUriMode
ListenUriMode

A value of the ListenUriMode that indicates whether the transport must ensure that the URI provided for the service to listen on is unique or can be used exactly as provided.

parameters
BindingParameterCollection

The BindingParameterCollection that specifies requirements for the channel listener that is built.

Returns

An IChannelListener<TChannel> of type TChannel that satisfies the features specified.

Exceptions

Transport element is missing or out of order or scheme is invalid or the message version is not specified.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1