mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-13 17:33:02 +00:00
7d7bc35869
Added support for IOptions injection, allowing options to be read from IConfiguration Small refactor on client options internals Updated HttpClient to be static field to be
43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
namespace CryptoExchange.Net.Objects
|
|
{
|
|
/// <summary>
|
|
/// Proxy info
|
|
/// </summary>
|
|
public class ApiProxy
|
|
{
|
|
/// <summary>
|
|
/// The host address of the proxy
|
|
/// </summary>
|
|
public string Host { get; set; }
|
|
/// <summary>
|
|
/// The port of the proxy
|
|
/// </summary>
|
|
public int Port { get; set; }
|
|
|
|
/// <summary>
|
|
/// The login of the proxy
|
|
/// </summary>
|
|
public string? Login { get; set; }
|
|
|
|
/// <summary>
|
|
/// The password of the proxy
|
|
/// </summary>
|
|
public string? Password { get; set; }
|
|
|
|
/// <summary>
|
|
/// Create new settings for a proxy
|
|
/// </summary>
|
|
/// <param name="host">The proxy hostname/ip</param>
|
|
/// <param name="port">The proxy port</param>
|
|
/// <param name="login">The proxy login</param>
|
|
/// <param name="password">The proxy password</param>
|
|
public ApiProxy(string host, int port, string? login = null, string? password = null)
|
|
{
|
|
Host = host;
|
|
Port = port;
|
|
Login = login;
|
|
Password = password;
|
|
}
|
|
}
|
|
}
|