DiscoveryClientBindingElement Class

Definition

A binding element that can be added to a WCF client application to take advantage of the Discovery client channel. The Discovery client channel allows a WCF client application to access a discoverable service without knowing the endpoint address in advance.

public ref class DiscoveryClientBindingElement sealed : System::ServiceModel::Channels::BindingElement
public sealed class DiscoveryClientBindingElement : System.ServiceModel.Channels.BindingElement
type DiscoveryClientBindingElement = class
    inherit BindingElement
Public NotInheritable Class DiscoveryClientBindingElement
Inherits BindingElement
Inheritance
DiscoveryClientBindingElement

Remarks

The Discovery client channel is used by creating a custom binding element and adding a DiscoveryClientBindingElement to the top of the binding stack. For more information about the Discovery client channel, see Using the Discovery Client Channel.

Constructors

DiscoveryClientBindingElement()

Initializes a new instance of the DiscoveryClientBindingElement class with default values.

DiscoveryClientBindingElement(DiscoveryEndpointProvider, FindCriteria)

Initializes a new instance of the DiscoveryClientBindingElement class with the specified endpoint provider and service finding criteria.

Fields

DiscoveryEndpointAddress

A static temporary address that acts as a placeholder until the actual service address is resolved.

Properties

DiscoveryEndpointProvider

Gets the discovery endpoint provider.

FindCriteria

Gets or sets the find criteria.

Methods

BuildChannelFactory<TChannel>(BindingContext)

Initializes a channel factory for producing channels of a specific type from the binding context.

BuildChannelListener<TChannel>(BindingContext)

Building a channel listener is not supported by the Discovery client channel. This method can be overridden to initialize a channel listener to accept channels of a specified type from the binding context.

CanBuildChannelFactory<TChannel>(BindingContext)

Returns a value that indicates whether the current binding can build a channel factory stack on the client.

CanBuildChannelListener<TChannel>(BindingContext)

Because building a channel listener is not supported by the Discovery client channel, this method always returns false. It may be extended to return a value that indicates whether the binding element can build a listener for a specific type of channel.

Clone()

Creates a copy of the binding element.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetProperty<T>(BindingContext)

Returns an object of the requested type, if present in the binding stack.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to