Add public base URL to LC client
parent
839e9b4935
commit
26f03f61fc
|
@ -18,18 +18,24 @@ namespace LANCommander.SDK
|
||||||
private readonly ILogger Logger;
|
private readonly ILogger Logger;
|
||||||
|
|
||||||
private readonly RestClient ApiClient;
|
private readonly RestClient ApiClient;
|
||||||
private AuthToken Token;
|
private AuthToken Token;
|
||||||
|
|
||||||
|
public string BaseUrl;
|
||||||
|
|
||||||
public Client(string baseUrl)
|
public Client(string baseUrl)
|
||||||
{
|
{
|
||||||
if (!String.IsNullOrWhiteSpace(baseUrl))
|
BaseUrl = baseUrl;
|
||||||
ApiClient = new RestClient(baseUrl);
|
|
||||||
|
if (!String.IsNullOrWhiteSpace(BaseUrl))
|
||||||
|
ApiClient = new RestClient(BaseUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Client(string baseUrl, ILogger logger)
|
public Client(string baseUrl, ILogger logger)
|
||||||
{
|
{
|
||||||
if (!String.IsNullOrWhiteSpace(baseUrl))
|
BaseUrl = baseUrl;
|
||||||
ApiClient = new RestClient(baseUrl);
|
|
||||||
|
if (!String.IsNullOrWhiteSpace(BaseUrl))
|
||||||
|
ApiClient = new RestClient(BaseUrl);
|
||||||
|
|
||||||
Logger = logger;
|
Logger = logger;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue