AnnouncementService Class
A self-hosted implementation of the announcement service.
Assembly: System.ServiceModel.Discovery (in System.ServiceModel.Discovery.dll)
| Name | Description | |
|---|---|---|
![]() | AnnouncementService() | Initializes a new instance of the AnnouncementService class. |
![]() | AnnouncementService(Int32) | Initializes a new instance of the AnnouncementService class with the specified length of the duplicate message history. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | OnBeginOfflineAnnouncement(DiscoveryMessageSequence^, EndpointDiscoveryMetadata^, AsyncCallback^, Object^) | Starts the processing of incoming offline announcement (Bye) messages. |
![]() | OnBeginOnlineAnnouncement(DiscoveryMessageSequence^, EndpointDiscoveryMetadata^, AsyncCallback^, Object^) | Starts the processing of incoming online announcement (Hello) messages. |
![]() | OnEndOfflineAnnouncement(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. |
![]() | OnEndOnlineAnnouncement(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. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | OfflineAnnouncementReceived | Occurs when an offline announcement (Bye) message is received, |
![]() | OnlineAnnouncementReceived | 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.
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.


