v2 (WPF)
This commit is contained in:
@@ -4,9 +4,6 @@ namespace LeagueAPI.Utils;
|
||||
|
||||
public class LcuHttpClient : HttpClient
|
||||
{
|
||||
private static readonly Lazy<LcuHttpClient> LazyInstance = new(() => new LcuHttpClient(new LcuHttpClientHandler()));
|
||||
internal static LcuHttpClient Instance => LazyInstance.Value;
|
||||
|
||||
private LcuHttpClientHandler Handler { get; }
|
||||
public ProcessInfo? ProcessInfo
|
||||
{
|
||||
@@ -22,11 +19,11 @@ public class LcuHttpClient : HttpClient
|
||||
|
||||
public RiotAuthentication? RiotAuthentication => Handler.RiotAuthentication;
|
||||
|
||||
internal LcuHttpClient(LcuHttpClientHandler lcuHttpClientHandler)
|
||||
public LcuHttpClient(LcuHttpClientHandler lcuHttpClientHandler)
|
||||
: base(lcuHttpClientHandler)
|
||||
{
|
||||
Handler = lcuHttpClientHandler;
|
||||
base.BaseAddress = new Uri("https://127.0.0.1");
|
||||
BaseAddress = new Uri("https://127.0.0.1");
|
||||
}
|
||||
|
||||
public async Task<T?> GetContentAsync<T>(string requestUri) where T : class
|
||||
|
||||
Reference in New Issue
Block a user