DiscoveryProxy.EndShouldRedirectFind(IAsyncResult, Collection<EndpointDiscoveryMetadata>) 方法
定义
重写此方法以处理针对查找请求发送多播禁止消息的完成。Override this method to handle the completion of sending the multicast suppression message for find requests.
protected:
virtual bool EndShouldRedirectFind(IAsyncResult ^ result, [Runtime::InteropServices::Out] System::Collections::ObjectModel::Collection<System::ServiceModel::Discovery::EndpointDiscoveryMetadata ^> ^ % redirectionEndpoints);
protected virtual bool EndShouldRedirectFind (IAsyncResult result, out System.Collections.ObjectModel.Collection<System.ServiceModel.Discovery.EndpointDiscoveryMetadata> redirectionEndpoints);
abstract member EndShouldRedirectFind : IAsyncResult * Collection -> bool
override this.EndShouldRedirectFind : IAsyncResult * Collection -> bool
Protected Overridable Function EndShouldRedirectFind (result As IAsyncResult, ByRef redirectionEndpoints As Collection(Of EndpointDiscoveryMetadata)) As Boolean
参数
- result
- IAsyncResult
对已完成的异步操作的引用。A reference to the completed asynchronous operation.
- redirectionEndpoints
- Collection<EndpointDiscoveryMetadata>
描述重定向终结点的终结点发现元数据的集合。A collection of endpoint discovery metadata that describes the redirection endpoints.
返回
如果应重定向查找操作,则为 true;否则为 false。true if the find operation should be redirected, otherwise false.
注解
当发现代理可用时,可以发送多播禁止消息来响应多播查找或解析消息。Multicast suppression messages can be sent in response to a multicast find or resolve message when a discovery proxy is available. 向发现代理发送单播消息有助于减少由发现操作引起的网络流量。Sending unicast messages to the discovery proxy can help reduce the amount of network traffic caused by the discovery operations.