This documentation is archived and is not being maintained.
AnnouncementService Class
Visual Studio 2010
A self-hosted implementation of the announcement service.
Assembly: System.ServiceModel.Discovery (in System.ServiceModel.Discovery.dll)
The AnnouncementService type exposes the following members.
| 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 a hash function for a particular type. (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.) |
![]() | OnBeginOfflineAnnouncement | Starts the processing of incoming offline announcement (Bye) messages. |
![]() | OnBeginOnlineAnnouncement | Starts the processing of incoming online announcement (Hello) messages. |
![]() | OnEndOfflineAnnouncement | 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 | 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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
