Upravit

Sdílet prostřednictvím


AnnouncementService.OnBeginOfflineAnnouncement Method

Definition

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

protected:
 virtual IAsyncResult ^ OnBeginOfflineAnnouncement(System::ServiceModel::Discovery::DiscoveryMessageSequence ^ messageSequence, System::ServiceModel::Discovery::EndpointDiscoveryMetadata ^ endpointDiscoveryMetadata, AsyncCallback ^ callback, System::Object ^ state);
protected virtual IAsyncResult OnBeginOfflineAnnouncement (System.ServiceModel.Discovery.DiscoveryMessageSequence messageSequence, System.ServiceModel.Discovery.EndpointDiscoveryMetadata endpointDiscoveryMetadata, AsyncCallback callback, object state);
abstract member OnBeginOfflineAnnouncement : System.ServiceModel.Discovery.DiscoveryMessageSequence * System.ServiceModel.Discovery.EndpointDiscoveryMetadata * AsyncCallback * obj -> IAsyncResult
override this.OnBeginOfflineAnnouncement : System.ServiceModel.Discovery.DiscoveryMessageSequence * System.ServiceModel.Discovery.EndpointDiscoveryMetadata * AsyncCallback * obj -> IAsyncResult
Protected Overridable Function OnBeginOfflineAnnouncement (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 Bye messages.

Applies to