상속: IWebProxy
		static IWebProxy GetProxy ()
		{
			lock (lockobj) {
				if (proxy != null)
					return proxy;

				object p = ConfigurationSettings.GetConfig ("system.net/defaultProxy");
				if (p == null)
					p = new EmptyWebProxy ();
				proxy = (IWebProxy) p;
			}

			return proxy;
		}
예제 #2
0
        static IWebProxy GetProxy()
        {
            lock (lockobj) {
                if (proxy != null)
                {
                    return(proxy);
                }

                object p = ConfigurationSettings.GetConfig("system.net/defaultProxy");
                if (p == null)
                {
                    p = new EmptyWebProxy();
                }
                proxy = (IWebProxy)p;
            }

            return(proxy);
        }