コード例 #1
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;
		}
コード例 #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);
        }