mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-07 16:06:15 +00:00
26 lines
578 B
C#
26 lines
578 B
C#
using System;
|
|
|
|
namespace CryptoExchange.Net
|
|
{
|
|
public class ApiProxy
|
|
{
|
|
/// <summary>
|
|
/// The host address of the proxy
|
|
/// </summary>
|
|
public string Host { get; }
|
|
/// <summary>
|
|
/// The port of the proxy
|
|
/// </summary>
|
|
public int Port { get; }
|
|
|
|
public ApiProxy(string host, int port)
|
|
{
|
|
if(string.IsNullOrEmpty(host) || port <= 0)
|
|
throw new ArgumentException("Proxy host or port not filled");
|
|
|
|
Host = host;
|
|
Port = port;
|
|
}
|
|
}
|
|
}
|