Editar

Partilhar via


DiscoveryService Class

Definition

An abstract base class used to implement a discovery service.

public ref class DiscoveryService abstract
public abstract class DiscoveryService
type DiscoveryService = class
Public MustInherit Class DiscoveryService
Inheritance
DiscoveryService

Remarks

When a ServiceDiscoveryBehavior is added to a service, a default DiscoveryService implementation is used to handle Find and Resolve requests. Extend this class to implement a custom discovery service that has behavior different from the default implementation, such as to reply to Find requests using a custom matching algorithm

Constructors

DiscoveryService()

Initializes a new instance of the DiscoveryService class.

DiscoveryService(DiscoveryMessageSequenceGenerator, Int32)

Initializes a new instance of the DiscoveryService class with the specified DiscoveryMessageSequenceGenerator and duplicate message history length.

DiscoveryService(DiscoveryMessageSequenceGenerator)

Initializes a new instance of the DiscoveryService class with the specified DiscoveryMessageSequenceGenerator.

Methods

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)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnBeginFind(FindRequestContext, AsyncCallback, Object)

Override this method to handle a find operation.

OnBeginResolve(ResolveCriteria, AsyncCallback, Object)

Override this method to handle a resolve operation.

OnEndFind(IAsyncResult)

Override this method to handle the completion of a find operation.

OnEndResolve(IAsyncResult)

Override this method to handle the completion of a resolve operation.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to