AnnouncementService Class

.NET Framework (current version)
 

A self-hosted implementation of the announcement service.

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

System::Object
  System.ServiceModel.Discovery::AnnouncementService

[ServiceBehaviorAttribute(InstanceContextMode = InstanceContextMode::Single, 
	ConcurrencyMode = ConcurrencyMode::Multiple)]
public ref class AnnouncementService 

NameDescription
System_CAPS_pubmethodAnnouncementService()

Initializes a new instance of the AnnouncementService class.

System_CAPS_pubmethodAnnouncementService(Int32)

Initializes a new instance of the AnnouncementService class with the specified length of the duplicate message history.

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_protmethodOnBeginOfflineAnnouncement(DiscoveryMessageSequence^, EndpointDiscoveryMetadata^, AsyncCallback^, Object^)

Starts the processing of incoming offline announcement (Bye) messages.

System_CAPS_protmethodOnBeginOnlineAnnouncement(DiscoveryMessageSequence^, EndpointDiscoveryMetadata^, AsyncCallback^, Object^)

Starts the processing of incoming online announcement (Hello) messages.

System_CAPS_protmethodOnEndOfflineAnnouncement(IAsyncResult^)

Users that inherit from AnnouncementService to implement a custom announcement listener service must override this method and begin to process incoming offline announcement (Bye) messages here.

System_CAPS_protmethodOnEndOnlineAnnouncement(IAsyncResult^)

Users that inherit from AnnouncementService to implement a custom announcement listener service must override this method and begin to process incoming offline announcement (Bye) messages here.

System_CAPS_pubmethodToString()

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

NameDescription
System_CAPS_pubeventOfflineAnnouncementReceived

Occurs when an offline announcement (Bye) message is received,

System_CAPS_pubeventOnlineAnnouncementReceived

Occurs when an online announcement (Hello) is received.

This class listens for incoming messages on a standard announcement endpoint (AnnouncementEndpoint) and provides event notification when Hello or Bye announcement messages arrive. You can provide a custom announcement service implementation by deriving from this class.

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