This commit is contained in:
@@ -441,20 +441,14 @@ namespace AyaNova.Core
|
||||
/// </summary>
|
||||
/// <returns>Result string</returns>
|
||||
internal static async Task<string> RequestTrialAsync(RequestTrial trialRequest, ILogger log)
|
||||
{
|
||||
|
||||
Microsoft.AspNetCore.Http.Extensions.QueryBuilder q = new Microsoft.AspNetCore.Http.Extensions.QueryBuilder();
|
||||
{
|
||||
trialRequest.DbId = ServerDbId;
|
||||
|
||||
log.LogDebug($"Requesting trial license for DBID {LicenseDbId.ToString()}");
|
||||
string sUrl = $"{LICENSE_SERVER_URL}rvr" + q.ToQueryString();
|
||||
string sUrl = $"{LICENSE_SERVER_URL}rvr";
|
||||
try
|
||||
{
|
||||
// var content = new StringContent(jsonObject.ToString(), Encoding.UTF8, "application/json");
|
||||
// var result = client.PostAsync(url, content).Result;
|
||||
|
||||
var content = new StringContent(JsonConvert.SerializeObject(trialRequest), Encoding.UTF8, "application/json");
|
||||
|
||||
var client = ServiceProviderProvider.HttpClientFactory.CreateClient();
|
||||
var res = await client.PostAsync(sUrl, content);
|
||||
if (res.IsSuccessStatusCode)
|
||||
|
||||
Reference in New Issue
Block a user