CustomPeerResolverService Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Note: This API is now obsolete.

Provides a basic implementation of a custom peer resolver service.

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

System.Object
  System.ServiceModel.PeerResolvers.CustomPeerResolverService

[ObsoleteAttribute("PeerChannel feature is obsolete and will be removed in the future.", 
	false)]
[ServiceBehaviorAttribute(UseSynchronizationContext = false, 
	InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
public class CustomPeerResolverService : IPeerResolverContract

NameDescription
System_CAPS_pubmethodCustomPeerResolverService()

Initializes a new default instance of the CustomPeerResolverService class.

NameDescription
System_CAPS_pubpropertyCleanupInterval

Gets or sets the recurring length of time after which stale entries are deleted from the peer resolver service's registration lookup table.

System_CAPS_pubpropertyControlShape

Gets or sets whether referrals are shared by the peer resolver service.

System_CAPS_pubpropertyRefreshInterval

Gets or sets the length of time that entries remain valid in a peer resolver service's registration lookup table.

NameDescription
System_CAPS_pubmethodClose()

Closes the peer resolver service.

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

Obtains the specific response settings for the peer resolver service.

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

Opens the peer resolver service.

System_CAPS_pubmethodRefresh(RefreshInfo)

Refreshes the expiry of an entry in the peer resolver service's registration lookup table.

System_CAPS_pubmethodRegister(Guid, String, PeerNodeAddress)

Adds a new entry to the registration lookup table of the peer resolver service.

System_CAPS_pubmethodRegister(RegisterInfo)

Adds a new entry to the registration lookup table of the peer resolver service.

System_CAPS_pubmethodResolve(ResolveInfo)

Returns a list of known endpoints for a registration entry.

System_CAPS_pubmethodToString()

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

System_CAPS_pubmethodUnregister(UnregisterInfo)

Removes a specific entry from the registration lookup table of the peer resolver service.

System_CAPS_pubmethodUpdate(UpdateInfo)

Updates an existing registration entry entry in the registration lookup table of the peer resolver service.

The CustomPeerResolverService class defines the base implementation of a custom peer resolver service and provides lookup for the resolution of registration IDs to peer endpoint addresses within the mesh maintained by this resolver.

Notes to Implementers:

Implementers of custom peer resolvers should derive from this class and override those specific functions for which they are providing custom implementations. Any custom peer resolver must minimally implement the IPeerResolverContract interface.

Also, clients using a custom resolver must have some upper bound on client-server latency in order to successfully refresh their registration with the peer resolver service.

.NET Framework
Available since 3.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: