Επεξεργασία

Κοινή χρήση μέσω


AnnouncementService Class

Definition

A self-hosted implementation of the announcement service.

public ref class AnnouncementService
[System.ServiceModel.ServiceBehavior(ConcurrencyMode=System.ServiceModel.ConcurrencyMode.Multiple, InstanceContextMode=System.ServiceModel.InstanceContextMode.Single)]
public class AnnouncementService
[<System.ServiceModel.ServiceBehavior(ConcurrencyMode=System.ServiceModel.ConcurrencyMode.Multiple, InstanceContextMode=System.ServiceModel.InstanceContextMode.Single)>]
type AnnouncementService = class
Public Class AnnouncementService
Inheritance
AnnouncementService
Attributes

Remarks

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.

Constructors

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.

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

Events

OfflineAnnouncementReceived

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

OnlineAnnouncementReceived

Occurs when an online announcement (Hello) is received.

Applies to