From fa98c7887d352a6c1972762a1890d6ec89574099 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Thu, 26 Oct 2023 07:26:25 +0000 Subject: [PATCH] chore: Automated dotnet-format update --- .../Engine/Net/BaseHandlerTest.cs | 22 +++++++++---------- .../Engine/Net/Http/HostHttpHandler.cs | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) 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;