DiscoveryProxy.EndShouldRedirectResolve 方法

定义

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

protected:
 virtual bool EndShouldRedirectResolve(IAsyncResult ^ result, [Runtime::InteropServices::Out] System::Collections::ObjectModel::Collection<System::ServiceModel::Discovery::EndpointDiscoveryMetadata ^> ^ % redirectionEndpoints);
protected virtual bool EndShouldRedirectResolve (IAsyncResult result, out System.Collections.ObjectModel.Collection<System.ServiceModel.Discovery.EndpointDiscoveryMetadata> redirectionEndpoints);
abstract member EndShouldRedirectResolve : IAsyncResult * Collection -> bool
override this.EndShouldRedirectResolve : IAsyncResult * Collection -> bool
Protected Overridable Function EndShouldRedirectResolve (result As IAsyncResult, ByRef redirectionEndpoints As Collection(Of EndpointDiscoveryMetadata)) As Boolean

参数

result
IAsyncResult

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

redirectionEndpoints
Collection<EndpointDiscoveryMetadata>

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

返回

如果应重定向该解决操作,则为 true;否则为 false

注解

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

适用于