Export (0) Print
Expand All

DiscoveryClient Class

Allows you to discover available services.

System.Object
  System.ServiceModel.Discovery.DiscoveryClient

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

public sealed class DiscoveryClient : ICommunicationObject, 
	IDisposable

The DiscoveryClient type exposes the following members.

  NameDescription
Public methodDiscoveryClient()Creates a new instance of the DiscoveryClient class.
Public methodDiscoveryClient(DiscoveryEndpoint)Creates a new instance of the DiscoveryClient class with the specified discovery endpoint.
Public methodDiscoveryClient(String)Creates a new instance of the DiscoveryClient class with the specified endpoint configuration.
Top

  NameDescription
Public propertyChannelFactoryGets the channel factory for the DiscoveryClient.
Public propertyClientCredentialsGets the client credentials for the DiscoveryClient.
Public propertyEndpointGets the endpoint used to send discovery messages.
Public propertyInnerChannelGets the channel used to send discovery messages.
Top

  NameDescription
Public methodCancelAsyncCancels a pending asynchronous operation.
Public methodCloseCloses the discovery client.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodFindSends a request to find services that match the specified criteria.
Public methodFindAsync(FindCriteria)Begins an asynchronous find operation with the specified criteria.
Public methodFindAsync(FindCriteria, Object)Begins an asynchronous find operation with the specified criteria and user defined state object.
Public methodFindTaskAsync(FindCriteria)Begins an asynchronous find task operation with the specified criteria.
Public methodFindTaskAsync(FindCriteria, CancellationToken)Begins an asynchronous find task operation with the specified criteria and cancellation token object.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodOpenOpens the DiscoveryClient.
Public methodResolveBegins an asynchronous resolve operation with the specified criteria.
Public methodResolveAsync(ResolveCriteria)Begins an asynchronous resolve operation with the specified criteria.
Public methodResolveAsync(ResolveCriteria, Object)Begins an asynchronous resolve operation with the specified criteria and user-defined state object.
Public methodResolveTaskAsync(ResolveCriteria)Begins an asynchronous resolve task operation with the specified criteria.
Public methodResolveTaskAsync(ResolveCriteria, CancellationToken)Begins an asynchronous resolve task operation with the specified criteria and cancellation token.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventFindCompletedOccurs when the entire find operation completes.
Public eventFindProgressChangedOccurs every time the client receives a response from a particular service.
Public eventProxyAvailableOccurs when a multicast suppression message is received from a discovery proxy in response to the find or resolve operation.
Public eventResolveCompletedOccurs when an asynchronous resolve operation is completed.
Top

  NameDescription
Explicit interface implemetationPrivate methodICommunicationObject.AbortCauses a communication object to transition immediately from its current state into the closed state.
Explicit interface implemetationPrivate methodICommunicationObject.BeginClose(AsyncCallback, Object)Begins an asynchronous operation to close a communication object.
Explicit interface implemetationPrivate methodICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to close a communication object with a specified timeout.
Explicit interface implemetationPrivate methodICommunicationObject.BeginOpen(AsyncCallback, Object)Begins an asynchronous operation to open a communication object.
Explicit interface implemetationPrivate methodICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to open a communication object within a specified interval of time.
Explicit interface implemetationPrivate methodICommunicationObject.Close()Causes a communication object to transition from its current state into the closed state.
Explicit interface implemetationPrivate methodICommunicationObject.Close(TimeSpan)Causes a communication object to transition from its current state into the closed state within a specified interval of time.
Explicit interface implemetationPrivate eventICommunicationObject.ClosedOccurs when the communication object completes its transition from the closing state into the closed state.
Explicit interface implemetationPrivate eventICommunicationObject.ClosingOccurs when the communication object first enters the closing state.
Explicit interface implemetationPrivate methodICommunicationObject.EndCloseCompletes an asynchronous operation to close a communication object.
Explicit interface implemetationPrivate methodICommunicationObject.EndOpenCompletes an asynchronous operation to open a communication object.
Explicit interface implemetationPrivate eventICommunicationObject.FaultedOccurs when the communication object first enters the faulted state.
Explicit interface implemetationPrivate methodICommunicationObject.Open()Causes a communication object to transition from the created state into the opened state.
Explicit interface implemetationPrivate methodICommunicationObject.Open(TimeSpan)Causes a communication object to transition from the created state into the opened state within a specified interval of time.
Explicit interface implemetationPrivate eventICommunicationObject.OpenedOccurs when the communication object completes its transition from the opening state into the opened state.
Explicit interface implemetationPrivate eventICommunicationObject.OpeningOccurs when the communication object first enters the opening state.
Explicit interface implemetationPrivate propertyICommunicationObject.StateGets the current state of the communication-oriented object.
Explicit interface implemetationPrivate methodIDisposable.DisposeProvides an implementation of the Dispose method.
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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