diff --git a/src/CSharp/EasyMicroservices.Laboratory.Tests/Engine/Net/BaseHandlerTest.cs b/src/CSharp/EasyMicroservices.Laboratory.Tests/Engine/Net/BaseHandlerTest.cs index 2eeb0bf..3db7f1b 100644 --- a/src/CSharp/EasyMicroservices.Laboratory.Tests/Engine/Net/BaseHandlerTest.cs +++ b/src/CSharp/EasyMicroservices.Laboratory.Tests/Engine/Net/BaseHandlerTest.cs @@ -17,17 +17,17 @@ public abstract class BaseHandlerTest public HttpClient GetHttpClient() { HttpClient httpClient = default; -// if (System.Environment.OSVersion.Platform != PlatformID.Unix) -// { -//#if (NET452) -// httpClient = new HttpClient(); -//#else -// var handler = new WinHttpHandler(); -// httpClient = new HttpClient(handler); -//#endif -// } -// else - httpClient = new HttpClient(); + // if (System.Environment.OSVersion.Platform != PlatformID.Unix) + // { + //#if (NET452) + // httpClient = new HttpClient(); + //#else + // var handler = new WinHttpHandler(); + // httpClient = new HttpClient(handler); + //#endif + // } + // else + httpClient = new HttpClient(); #if (!NET452 && !NET48) httpClient.DefaultRequestVersion = HttpVersion.Version20; diff --git a/src/CSharp/EasyMicroservices.Laboratory/Engine/Net/Http/HostHttpHandler.cs b/src/CSharp/EasyMicroservices.Laboratory/Engine/Net/Http/HostHttpHandler.cs index 9904e09..9d5fdae 100644 --- a/src/CSharp/EasyMicroservices.Laboratory/Engine/Net/Http/HostHttpHandler.cs +++ b/src/CSharp/EasyMicroservices.Laboratory/Engine/Net/Http/HostHttpHandler.cs @@ -1,4 +1,4 @@ -#if(NET6_0_OR_GREATER) +#if (NET6_0_OR_GREATER) using Microsoft.AspNetCore.Http; using System; using System.IO;