Esempio n. 1
0
        protected HttpSimpleClientProtocol()
        {
            Type type = base.GetType();

            this.clientType = (HttpClientType)WebClientProtocol.GetFromCache(type);
            if (this.clientType == null)
            {
                lock (WebClientProtocol.InternalSyncObject)
                {
                    this.clientType = (HttpClientType)WebClientProtocol.GetFromCache(type);
                    if (this.clientType == null)
                    {
                        this.clientType = new HttpClientType(type);
                        WebClientProtocol.AddToCache(type, this.clientType);
                    }
                }
            }
        }
Esempio n. 2
0
        public SoapHttpClientProtocol()
        {
            Type type = base.GetType();

            this.clientType = (SoapClientType)WebClientProtocol.GetFromCache(type);
            if (this.clientType == null)
            {
                lock (WebClientProtocol.InternalSyncObject)
                {
                    this.clientType = (SoapClientType)WebClientProtocol.GetFromCache(type);
                    if (this.clientType == null)
                    {
                        this.clientType = new SoapClientType(type);
                        WebClientProtocol.AddToCache(type, this.clientType);
                    }
                }
            }
        }
Esempio n. 3
0
        public SoapHttpClientProtocol()
        {
            Type type = this.GetType();

            this.clientType = (SoapClientType)WebClientProtocol.GetFromCache(type);
            if (this.clientType != null)
            {
                return;
            }
            lock (WebClientProtocol.InternalSyncObject)
            {
                this.clientType = (SoapClientType)WebClientProtocol.GetFromCache(type);
                if (this.clientType != null)
                {
                    return;
                }
                this.clientType = new SoapClientType(type);
                WebClientProtocol.AddToCache(type, (object)this.clientType);
            }
        }