Skip to content

Commit 4648d5e

Browse files
authored
Update:touchsocket version to 3.1.0 (#9864)
1 parent d5c87a4 commit 4648d5e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

frameworks/CSharp/touchsocket/src/TouchSocketHttp/TouchSocketHttp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
</PropertyGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="TouchSocket.Http" Version="3.0.24" />
15+
<PackageReference Include="TouchSocket.Http" Version="3.1.0" />
1616
</ItemGroup>
1717
</Project>

frameworks/CSharp/touchsocket/src/TouchSocketWebApi/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ public static void Main(string[] args)
5858
}
5959
}
6060

61-
public partial class ApiServer : RpcServer
61+
public partial class ApiServer : SingletonRpcServer
6262
{
63-
private HttpContent m_contentPlaintext = new StringHttpContent("Hello, World!", Encoding.UTF8, $"text/plain");
63+
private readonly HttpContent m_contentPlaintext = new StringHttpContent("Hello, World!", Encoding.UTF8, $"text/plain");
6464

6565
public static MyJson MyJson { get; set; } = new MyJson() { Message = "Hello, World!" };
6666

@@ -71,7 +71,7 @@ public async Task Plaintext(IWebApiCallContext callContext)
7171
var response= callContext.HttpContext.Response;
7272
response.SetStatus(200, "success");
7373
response.Content= m_contentPlaintext;
74-
await response.AnswerAsync();
74+
await response.AnswerAsync().ConfigureAwait(false);
7575
}
7676

7777
[Router("/json")]

frameworks/CSharp/touchsocket/src/TouchSocketWebApi/TouchSocketWebApi.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
15-
<PackageReference Include="TouchSocket.Hosting" Version="3.0.24" />
16-
<PackageReference Include="TouchSocket.WebApi" Version="3.0.24" />
17-
<PackageReference Include="TouchSocket.WebApi.Swagger" Version="3.0.24" />
15+
<PackageReference Include="TouchSocket.Hosting" Version="3.1.0" />
16+
<PackageReference Include="TouchSocket.WebApi" Version="3.1.0" />
17+
<PackageReference Include="TouchSocket.WebApi.Swagger" Version="3.1.0" />
1818
</ItemGroup>
1919
</Project>

0 commit comments

Comments
 (0)