Skip to content

Commit

Permalink
migrate to SocketsHttpHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightczx committed Sep 11, 2024
1 parent 3c34a54 commit 69bf9d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ private static void FillUpWithAddHttpClient(StringBuilder sourceBuilder, SourceP
lineBuilder.Append("""
.ConfigurePrimaryHttpMessageHandler((handler, provider) =>
{
HttpClientHandler clientHandler = (HttpClientHandler)handler;
SocketsHttpHandler typedHandler = (SocketsHttpHandler)handler;
""");

foreach (KeyValuePair<string, TypedConstant> property in properties)
{
lineBuilder.Append(" clientHandler.");
lineBuilder.Append(" typedHandler.");
lineBuilder.Append(property.Key);
lineBuilder.Append(" = ");
lineBuilder.Append(property.Value.ToCSharpString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<PropertyGroup>
<PackageId>Snap.Hutao.SourceGeneration</PackageId>
<Version>1.1.16</Version>
<Version>1.1.17</Version>
<Authors>DGP Studio</Authors>
<IncludeBuildOutput>false</IncludeBuildOutput>
<DevelopmentDependency>true</DevelopmentDependency>
Expand Down

0 comments on commit 69bf9d8

Please sign in to comment.