DiscoveryProxy.EndShouldRedirectFind 方法

定义

重写此方法以处理针对查找请求发送多播禁止消息的完成。

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

对已完成的异步操作的引用。

redirectionEndpoints
Collection<EndpointDiscoveryMetadata>

描述重定向终结点的终结点发现元数据的集合。

返回

Boolean

如果应重定向查找操作,则为 true;否则为 false

注解

当发现代理可用时,可以发送多播禁止消息来响应多播查找或解析消息。 向发现代理发送单播消息有助于减少由发现操作引起的网络流量。

适用于