mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-08 12:21:10 +00:00
proxy authentication added
This commit is contained in:
@@ -54,9 +54,10 @@ namespace CryptoExchange.Net.Requests
|
||||
|
||||
public Uri Uri => request.RequestUri;
|
||||
|
||||
public void SetProxy(string host, int port)
|
||||
public void SetProxy(string host, int port, string login, string password)
|
||||
{
|
||||
request.Proxy = new WebProxy(host, port);
|
||||
if(!string.IsNullOrEmpty(login) && !string.IsNullOrEmpty(password)) request.Proxy.Credentials = new NetworkCredential(login, password);
|
||||
}
|
||||
|
||||
public async Task<Stream> GetRequestStream()
|
||||
|
||||
Reference in New Issue
Block a user