Skip to content

Commit 426e043

Browse files
committed
fix(touchsocket):build error
1 parent 3322534 commit 426e043

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

frameworks/CSharp/touchsocket/benchmark_config.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"port": 8080,
99
"approach": "Realistic",
1010
"classification": "Fullstack",
11+
"database": "Postgres",
1112
"framework": "touchsocket.webapi",
1213
"language": "C#",
1314
"orm": "Raw",
@@ -64,6 +65,7 @@
6465
"port": 8080,
6566
"approach": "Realistic",
6667
"classification": "Fullstack",
68+
"database": "Postgres",
6769
"framework": "touchsocket.webapi31",
6870
"language": "C#",
6971
"orm": "Raw",

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

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

99
using HttpContent = TouchSocket.Http.HttpContent;
1010

11-
namespace TouchSocketWebApi;
11+
namespace TouchSocketWebApi31;
1212

1313
public class Program
1414
{
@@ -60,7 +60,7 @@ public partial class ApiServer : SingletonRpcServer
6060
public async Task Plaintext(IWebApiCallContext callContext)
6161
{
6262
var response= callContext.HttpContext.Response;
63-
response.SetStatus(200, "success");
63+
response.SetStatus(200, "ok");
6464
response.Content= m_contentPlaintext;
6565
await response.AnswerAsync().ConfigureAwait(false);
6666
}
@@ -73,7 +73,7 @@ public MyJson Json()
7373
}
7474
}
7575

76-
[JsonSerializable(typeof(MyJson))]//ʵ¼ÊÀàÐÍ1
76+
[JsonSerializable(typeof(MyJson))]
7777
internal partial class AppJsonSerializerContext : JsonSerializerContext
7878
{
7979

0 commit comments

Comments
 (0)