DiscoveryClientBindingElement Class

.NET Framework (current version)
 

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.

Namespace:   System.ServiceModel.Discovery
Assembly:  System.ServiceModel.Discovery (in System.ServiceModel.Discovery.dll)

System.Object
  System.ServiceModel.Channels.BindingElement
    System.ServiceModel.Discovery.DiscoveryClientBindingElement

Public NotInheritable Class DiscoveryClientBindingElement
	Inherits BindingElement

NameDescription
System_CAPS_pubmethodDiscoveryClientBindingElement()

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

System_CAPS_pubmethodDiscoveryClientBindingElement(DiscoveryEndpointProvider, FindCriteria)

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

NameDescription
System_CAPS_pubpropertyDiscoveryEndpointProvider

Gets the discovery endpoint provider.

System_CAPS_pubpropertyFindCriteria

Gets or sets the find criteria.

NameDescription
System_CAPS_pubmethodBuildChannelFactory(Of TChannel)(BindingContext)

Initializes a channel factory for producing channels of a specific type from the binding context.(Overrides BindingElement.BuildChannelFactory(Of TChannel)(BindingContext).)

System_CAPS_pubmethodBuildChannelListener(Of 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.(Overrides BindingElement.BuildChannelListener(Of TChannel)(BindingContext).)

System_CAPS_pubmethodCanBuildChannelFactory(Of TChannel)(BindingContext)

Returns a value that indicates whether the current binding can build a channel factory stack on the client.(Overrides BindingElement.CanBuildChannelFactory(Of TChannel)(BindingContext).)

System_CAPS_pubmethodCanBuildChannelListener(Of 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.(Overrides BindingElement.CanBuildChannelListener(Of TChannel)(BindingContext).)

System_CAPS_pubmethodClone()

Creates a copy of the binding element.(Overrides BindingElement.Clone().)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetProperty(Of T)(BindingContext)

Returns an object of the requested type, if present in the binding stack.(Overrides BindingElement.GetProperty(Of T)(BindingContext).)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticDiscoveryEndpointAddress

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

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.

.NET Framework
Available since 4.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: