public static IPHostEntry EndResolve(IAsyncResult asyncResult) { if (asyncResult == null) { throw new ArgumentNullException("asyncResult"); } AsyncResult async = (AsyncResult)asyncResult; ResolveCallback cb = (ResolveCallback)async.AsyncDelegate; return(cb.EndInvoke(asyncResult)); }
public static IPHostEntry EndResolve(IAsyncResult asyncResult) { if (asyncResult == null) { throw new ArgumentNullException("asyncResult"); } #if !MOBILE if (use_mono_dns) { return(EndAsyncCall(asyncResult as DnsAsyncResult)); } #endif AsyncResult async = (AsyncResult)asyncResult; ResolveCallback cb = (ResolveCallback)async.AsyncDelegate; return(cb.EndInvoke(asyncResult)); }