Επεξεργασία

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


AnnouncementService.OnBeginOnlineAnnouncement Method

Definition

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

protected:
 virtual IAsyncResult ^ OnBeginOnlineAnnouncement(System::ServiceModel::Discovery::DiscoveryMessageSequence ^ messageSequence, System::ServiceModel::Discovery::EndpointDiscoveryMetadata ^ endpointDiscoveryMetadata, AsyncCallback ^ callback, System::Object ^ state);
protected virtual IAsyncResult OnBeginOnlineAnnouncement (System.ServiceModel.Discovery.DiscoveryMessageSequence messageSequence, System.ServiceModel.Discovery.EndpointDiscoveryMetadata endpointDiscoveryMetadata, AsyncCallback callback, object state);
abstract member OnBeginOnlineAnnouncement : System.ServiceModel.Discovery.DiscoveryMessageSequence * System.ServiceModel.Discovery.EndpointDiscoveryMetadata * AsyncCallback * obj -> IAsyncResult
override this.OnBeginOnlineAnnouncement : System.ServiceModel.Discovery.DiscoveryMessageSequence * System.ServiceModel.Discovery.EndpointDiscoveryMetadata * AsyncCallback * obj -> IAsyncResult
Protected Overridable Function OnBeginOnlineAnnouncement (messageSequence As DiscoveryMessageSequence, endpointDiscoveryMetadata As EndpointDiscoveryMetadata, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

messageSequence
DiscoveryMessageSequence

The position of this message in the sequence for the current notification.

endpointDiscoveryMetadata
EndpointDiscoveryMetadata

An object that provides endpoint metadata, for example scopes, listen URI, contract names, and endpoint address.

callback
AsyncCallback

The method to call when the asynchronous operation is complete.

state
Object

Infrastructure-defined state data.

Returns

The status of the pending asynchronous request.

Remarks

Classes that inherit from AnnouncementService to implement a custom announcement listener service must override this method and begin to process incoming Hello messages.

Applies to