Esempio n. 1
0
 internal WebClientProtocol(WebClientProtocol protocol)
 {
     this.credentials         = protocol.credentials;
     this.uri                 = protocol.uri;
     this.timeout             = protocol.timeout;
     this.connectionGroupName = protocol.connectionGroupName;
     this.requestEncoding     = protocol.requestEncoding;
 }
 internal WebClientAsyncResult(WebClientProtocol clientProtocol, object internalAsyncState, WebRequest request, AsyncCallback userCallback, object userAsyncState)
 {
     this.ClientProtocol         = clientProtocol;
     this.InternalAsyncState     = internalAsyncState;
     this.userAsyncState         = userAsyncState;
     this.userCallback           = userCallback;
     this.Request                = request;
     this.completedSynchronously = true;
 }
 internal WebClientAsyncResult(WebClientProtocol clientProtocol, object internalAsyncState, WebRequest request, AsyncCallback userCallback, object userAsyncState)
 {
     this.ClientProtocol = clientProtocol;
     this.InternalAsyncState = internalAsyncState;
     this.userAsyncState = userAsyncState;
     this.userCallback = userCallback;
     this.Request = request;
     this.completedSynchronously = true;
 }
 internal WebClientProtocol(WebClientProtocol protocol)
 {
     this.nullToken = new object();
     this.asyncInvokes = Hashtable.Synchronized(new Hashtable());
     this.credentials = protocol.credentials;
     this.uri = protocol.uri;
     this.timeout = protocol.timeout;
     this.connectionGroupName = protocol.connectionGroupName;
     this.requestEncoding = protocol.requestEncoding;
 }
Esempio n. 5
0
 internal WebClientProtocol(WebClientProtocol protocol)
 {
     this.nullToken           = new object();
     this.asyncInvokes        = Hashtable.Synchronized(new Hashtable());
     this.credentials         = protocol.credentials;
     this.uri                 = protocol.uri;
     this.timeout             = protocol.timeout;
     this.connectionGroupName = protocol.connectionGroupName;
     this.requestEncoding     = protocol.requestEncoding;
 }
Esempio n. 6
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. 7
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. 8
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);
            }
        }
 internal WebClientProtocol(WebClientProtocol protocol) {
     this.credentials = protocol.credentials;
     this.uri = protocol.uri;
     this.timeout = protocol.timeout;
     this.connectionGroupName = protocol.connectionGroupName;
     this.requestEncoding = protocol.requestEncoding;
 }