Exemple #1
0
		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);
		}
Exemple #2
0
        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));
        }
Exemple #3
0
        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));
        }
Exemple #4
0
        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));
        }
Exemple #5
0
        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));
        }
Exemple #6
0
        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
        }
Exemple #7
0
		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);
		}
Exemple #8
0
		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
		}
Exemple #9
0
 public Promise <R> Then <R>(ResolveCallback <Promise <R> > then)
 {
     return(Then(then, (RejectCallback <Promise <R> >)null).Unwrap());
 }
Exemple #10
0
 public abstract Promise <R> Then <R>(ResolveCallback <R> then, RejectCallback <R> fail);
Exemple #11
0
 public abstract Promise <R> Then <R>(ResolveCallback <R> then);
Exemple #12
0
 public abstract Promise    Then(ResolveCallback then, RejectCallback fail);
Exemple #13
0
 public abstract Promise    Then(ResolveCallback then);
Exemple #14
0
 protected abstract Promise TapT(ResolveCallback <Promise> tap);
Exemple #15
0
 public Promise Finally(ResolveCallback <Promise> tap)
 {
     return(TapT(tap));
 }
Exemple #16
0
 public Promise Tap(ResolveCallback tap)
 {
     return(TapT(tap));
 }