make httpclient public
This commit is contained in:
@@ -5,9 +5,10 @@ namespace Pilz.Net.Api;
|
||||
|
||||
public class ApiClient(string apiUrl) : IApiClient
|
||||
{
|
||||
protected readonly HttpClient httpClient = new();
|
||||
protected readonly List<object> clients = [];
|
||||
|
||||
public HttpClient HttpClient { get; set; } = new();
|
||||
|
||||
public virtual string ApiUrl { get; } = apiUrl;
|
||||
|
||||
public string? AuthKey { get; set; }
|
||||
@@ -84,7 +85,7 @@ public class ApiClient(string apiUrl) : IApiClient
|
||||
Content = content
|
||||
};
|
||||
|
||||
return await httpClient.SendAsync(httpmsg);
|
||||
return await HttpClient.SendAsync(httpmsg);
|
||||
}
|
||||
|
||||
protected virtual string BuildParameters(ApiParameterCollection? @params)
|
||||
|
||||
Reference in New Issue
Block a user