protected override EndpointDiscoveryMetadata OnEndResolve(IAsyncResult result)
 {
     return(OnResolveAsyncResult.End(result));
 }
            public static EndpointDiscoveryMetadata End(IAsyncResult result)
            {
                OnResolveAsyncResult thisPtr = AsyncResult.End <OnResolveAsyncResult>(result);

                return(thisPtr._matchingEndpoint);
            }