Revision 65282d58 trunk/Pithos.Network/CloudFilesClient.cs

b/trunk/Pithos.Network/CloudFilesClient.cs
93 93

  
94 94
        protected Uri RootAddressUri { get; set; }
95 95

  
96
        private Uri _proxy;
96
        private WebProxy _proxy;
97
        public WebProxy Proxy
98
        {
99
            get { return _proxy; }
100
            set
101
            {
102
                _proxy = value;
103
                if (_baseClient != null)
104
                    _baseClient.Proxy = value;                
105
            }
106
        }
107

  
108

  
109
        /* private Uri _proxy;
97 110
        public Uri Proxy
98 111
        {
99 112
            get { return _proxy; }
......
103 116
                if (_baseClient != null)
104 117
                    _baseClient.Proxy = new WebProxy(value);                
105 118
            }
106
        }
119
        }*/
107 120

  
108 121
        public double DownloadPercentLimit { get; set; }
109 122
        public double UploadPercentLimit { get; set; }
......
141 154
            {
142 155
                BaseAddress = accountInfo.StorageUri.ToString(),
143 156
                Timeout = 10000,
144
                Retries = 3
157
                Retries = 3,
158
                Proxy=this.Proxy
145 159
            };
146 160
            StorageUrl = accountInfo.StorageUri;
147 161
            Token = accountInfo.Token;
......
175 189
            var groups = new List<Group>();
176 190

  
177 191
            using (var authClient = new RestClient{BaseAddress=AuthenticationUrl})
178
            {
192
            {                
179 193
                if (Proxy != null)
180
                    authClient.Proxy = new WebProxy(Proxy);
194
                    authClient.Proxy = Proxy;
181 195

  
182 196
                Contract.Assume(authClient.Headers!=null);
183 197

  
......
196 210
                {
197 211
                    BaseAddress = storageUrl,
198 212
                    Timeout = 10000,
199
                    Retries = 3
213
                    Retries = 3,
214
                    Proxy=Proxy
200 215
                };
201 216

  
202 217
                StorageUrl = new Uri(storageUrl);

Also available in: Unified diff