public static IAsyncResult BeginResolve (string hostName, AsyncCallback requestCallback, object stateObject) { if (hostName == null) throw new ArgumentNullException ("hostName"); ResolveCallback c = new ResolveCallback (Resolve); return c.BeginInvoke (hostName, requestCallback, stateObject); }
public static IAsyncResult BeginResolve(string hostName, AsyncCallback requestCallback, object stateObject) { if (hostName == null) { throw new ArgumentNullException("hostName"); } ResolveCallback resolveCallback = Resolve; return(resolveCallback.BeginInvoke(hostName, requestCallback, stateObject)); }
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 IAsyncResult BeginResolve(string hostName, AsyncCallback requestCallback, object stateObject) { if (hostName == null) { throw new ArgumentNullException("hostName"); } if (use_mono_dns) { return(BeginAsyncCall(hostName, requestCallback, stateObject)); } ResolveCallback c = new ResolveCallback(Resolve); return(c.BeginInvoke(hostName, requestCallback, stateObject)); }
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)); }
public static IAsyncResult BeginResolve(string hostName, AsyncCallback requestCallback, object stateObject) { #if FEATURE_NO_BSD_SOCKETS throw new PlatformNotSupportedException("System.Net.Dns:BeginResolve is not supported on this platform."); #else if (hostName == null) { throw new ArgumentNullException("hostName"); } #if !MOBILE if (use_mono_dns) { return(BeginAsyncCall(hostName, requestCallback, stateObject)); } #endif ResolveCallback c = new ResolveCallback(Resolve); return(c.BeginInvoke(hostName, requestCallback, stateObject)); #endif // FEATURE_NO_BSD_SOCKETS }
public static IAsyncResult BeginResolve (string hostName, AsyncCallback requestCallback, object stateObject) { if (hostName == null) throw new ArgumentNullException ("hostName"); #if !MOBILE if (use_mono_dns) return BeginAsyncCall (hostName, requestCallback, stateObject); #endif ResolveCallback c = new ResolveCallback (Resolve); return c.BeginInvoke (hostName, requestCallback, stateObject); }
public static IAsyncResult BeginResolve (string hostName, AsyncCallback requestCallback, object stateObject) { #if FEATURE_NO_BSD_SOCKETS throw new PlatformNotSupportedException ("System.Net.Dns:BeginResolve is not supported on this platform."); #else if (hostName == null) throw new ArgumentNullException ("hostName"); #if !MOBILE if (use_mono_dns) return BeginAsyncCall (hostName, requestCallback, stateObject); #endif ResolveCallback c = new ResolveCallback (Resolve); return c.BeginInvoke (hostName, requestCallback, stateObject); #endif // FEATURE_NO_BSD_SOCKETS }
public Promise <R> Then <R>(ResolveCallback <Promise <R> > then) { return(Then(then, (RejectCallback <Promise <R> >)null).Unwrap()); }
public abstract Promise <R> Then <R>(ResolveCallback <R> then, RejectCallback <R> fail);
public abstract Promise <R> Then <R>(ResolveCallback <R> then);
public abstract Promise Then(ResolveCallback then, RejectCallback fail);
public abstract Promise Then(ResolveCallback then);
protected abstract Promise TapT(ResolveCallback <Promise> tap);
public Promise Finally(ResolveCallback <Promise> tap) { return(TapT(tap)); }
public Promise Tap(ResolveCallback tap) { return(TapT(tap)); }