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); } } } }
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); } } } }
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); } }