AnnouncementService.OnBeginOfflineAnnouncement 方法

定义

开始处理传入的脱机公告 (Bye) 消息。

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

参数

messageSequence
DiscoveryMessageSequence

此消息在当前通知序列中的位置。

endpointDiscoveryMetadata
EndpointDiscoveryMetadata

一个对象,该对象提供终结点元数据,例如,范围、侦听 URI、协定名称和终结点地址。

callback
AsyncCallback

将在完成异步操作时调用的方法。

state
Object

基础结构定义的状态数据。

返回

IAsyncResult

挂起的异步请求的状态。

注解

AnnouncementService 中继承以实现自定义公告侦听器服务的类必须重写此方法,并开始处理传入的 Bye 消息。

适用于