AnnouncementService.OnBeginOnlineAnnouncement 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
開始處理傳入的線上公告 (Hello) 訊息。
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
參數
- messageSequence
- DiscoveryMessageSequence
此訊息在目前的通知序列中的位置。
- endpointDiscoveryMetadata
- EndpointDiscoveryMetadata
提供端點中繼資料的物件,例如範圍、接聽 URI、合約名稱和端點位址。
- callback
- AsyncCallback
要在非同步作業完成時呼叫的方法。
- state
- Object
基礎結構定義的狀態資料。
傳回
暫止之非同步要求的狀態。
備註
繼承自 AnnouncementService 以實作自訂公告接聽程式服務的類別,必須覆寫此方法並開始處理傳入的 Hello 訊息。