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 消息。