using SystemX.Core.Communication; using SystemX.Core.Services; using Web.Operation.Packet; using WebClient.Library.Config; namespace Web.Operation.Services { public class ProxyKMSService { private readonly IServiceScopeFactory _scopeFactory; private readonly ConfigService? _configService; private string ApiHost = string.Empty; public ProxyKMSService(IServiceProvider serviceProvider, IServiceScopeFactory scopeFactory, ConfigService configService) { _scopeFactory = scopeFactory; _configService = configService; } public async Task PostKms(string url, REQUEST request) where REQUEST : class where RESPONSE : class { Http http = new Http(); var res = await http.PostJsonAsync($"{url}", request); return res; } public async Task PutKms(string url, REQUEST request) where REQUEST : class where RESPONSE : class { Http http = new Http(); var res = await http.PutJsonAsync($"{url}", request); return res; } } }