static bool OnShouldRedirectResolveCompleted(IAsyncResult result) { Collection <EndpointDiscoveryMetadata> redirectionEndpoints = null; ResolveDuplexAsyncResult <TResolveMessage, TResponseChannel> thisPtr = (ResolveDuplexAsyncResult <TResolveMessage, TResponseChannel>)result.AsyncState; if (thisPtr.multicastSuppressionImpl.EndShouldRedirectResolve(result, out redirectionEndpoints)) { return(thisPtr.SendProxyAnnouncements(redirectionEndpoints)); } else { return(thisPtr.ProcessResolveRequest()); } }