eliminates region sections

This commit is contained in:
BinaryAlley committed 2024-10-12 22:03:57 +03:00
1 parent 705c02b90d
commit 405fc1ff9a
370 files changed
+47 -1618

No files matched your search

@@ -24,12 +24,9 @@ namespace Lumina.Presentation.Web.Common.Api;
/// </summary>
public class ApiHttpClient : IApiHttpClient
{
#region ================================================================== FIELD MEMBERS ================================================================================
private readonly HttpClient _httpClient;
private readonly JsonSerializerOptions _jsonOptions;
#endregion
#region ====================================================================== CTOR =====================================================================================
/// <summary>
/// Initializes a new instance of the <see cref="ApiHttpClient"/> class.
/// </summary>
@@ -49,9 +46,7 @@ public class ApiHttpClient : IApiHttpClient
Converters = { new JsonStringEnumConverter() }
};
}
#endregion
#region ===================================================================== METHODS ===================================================================================
/// <summary>
/// Sends a GET request to the specified <paramref name="endpoint"/> as an asynchronous operation and returns the result.
/// </summary>
@@ -208,5 +203,4 @@ public class ApiHttpClient : IApiHttpClient
throw new ApiException(problemDetails, response.StatusCode);
}
}
#endregion
}
@@ -12,7 +12,6 @@ namespace Lumina.Presentation.Web.Common.Api;
/// </summary>
public interface IApiHttpClient
{
#region ===================================================================== METHODS ===================================================================================
/// <summary>
/// Sends a GET request to the specified <paramref name="endpoint"/> as an asynchronous operation and returns the result.
/// </summary>
@@ -75,5 +74,4 @@ public interface IApiHttpClient
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
/// <returns>The deserialized response containing the result of the POST request.</returns>
Task<TResponse> PostAsync<TResponse, TModel>(string endpoint, TModel data, string? token = null, CancellationToken cancellationToken = default);
#endregion
}