EndpointDiscoveryBehavior Class

.NET Framework (current version)
 

Controls the content of the EndpointDiscoveryMetadata returned by a discovery endpoint.

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

System.Object
  System.ServiceModel.Discovery.EndpointDiscoveryBehavior

public class EndpointDiscoveryBehavior : IEndpointBehavior

NameDescription
System_CAPS_pubmethodEndpointDiscoveryBehavior()

Creates a new instance of the EndpointDiscoveryBehavior class.

NameDescription
System_CAPS_pubpropertyContractTypeNames

Gets the contract type names associated with the endpoint.

System_CAPS_pubpropertyEnabled

Gets or sets a value that controls the discoverability of the associated endpoint.

System_CAPS_pubpropertyExtensions

Gets the extensions associated with the endpoint.

System_CAPS_pubpropertyScopes

Gets the scopes associated with the endpoint.

NameDescription
System_CAPS_pubmethodEquals(Object)

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

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_pubmethodGetType()

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

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

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

This behavior is used to configure the various discovery settings for an endpoint, such as its discoverability, scopes, and any custom extensions to its metadata. A user creates a new instance of this type and adds it to the specific endpoint whose EndpointDiscoveryMetadata must be configured. It can also be used to turn off discovery for specific endpoint using the Enabled property. Note that the EndpointDiscoveryBehavior on an endpoint is ignored if ServiceDiscoveryBehavior is not present. You cannot make an endpoint discoverable through EndpointDiscoveryMetadata without first adding a ServiceDiscoveryBehavior to your service.

.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: