Skip to content

Commit 00361d5

Browse files
committed
Version 4.5.0 (.NET 4.7.2)
[ENHANCEMENT] Implement API.Static interface #11
1 parent 5775971 commit 00361d5

File tree

16 files changed

+511
-13
lines changed

16 files changed

+511
-13
lines changed

rls/API.Library.dll

4 KB
Binary file not shown.

rls/API.Library.pdb

8 KB
Binary file not shown.

src/API.Library/API.Library.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
<Compile Include="Entities\API.Common.cs" />
110110
<Compile Include="Entities\API.Map.cs" />
111111
<Compile Include="Entities\API.JSONRPC.cs" />
112+
<Compile Include="Entities\API.Static.cs" />
112113
<Compile Include="Entities\API.RESTful.cs" />
113114
<Compile Include="Entities\Log.cs" />
114115
<Compile Include="Entities\MemCacheD.cs" />

src/API.Library/Entities/API.JSONRPC.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public void ProcessRequest(HttpContext context)
5656
// Thread a PerfomanceCollector
5757
PerfomanceCollector performanceCollector = new PerfomanceCollector();
5858
Thread performanceThread = new Thread(new ThreadStart(performanceCollector.CollectData));
59-
performanceThread.Start();
6059

6160
try
6261
{
@@ -95,9 +94,11 @@ public void ProcessRequest(HttpContext context)
9594
switch (isAuthenticated)
9695
{
9796
case null: //Anonymous authentication
97+
performanceThread.Start();
9898
result = GetResult(ref context, JSONRPC_Request, sessionCookie);
9999
break;
100100
case true: //Windows Authentication
101+
performanceThread.Start();
101102
result = GetResult(ref context, JSONRPC_Request, null);
102103
break;
103104
case false: //Error

src/API.Library/Entities/API.RESTful.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ public void ProcessRequest(HttpContext context)
4141
// Thread a PerfomanceCollector
4242
PerfomanceCollector performanceCollector = new PerfomanceCollector();
4343
Thread performanceThread = new Thread(new ThreadStart(performanceCollector.CollectData));
44-
performanceThread.Start();
4544

4645
try
4746
{
@@ -78,25 +77,22 @@ public void ProcessRequest(HttpContext context)
7877
switch (isAuthenticated)
7978
{
8079
case null: //Anonymous authentication
80+
performanceThread.Start();
8181
result = GetResult(ref context, sessionCookie);
8282
break;
8383
case true: //Windows Authentication
84+
performanceThread.Start();
8485
result = GetResult(ref context);
85-
8686
break;
8787
case false: //Error
8888
ParseError(ref context, HttpStatusCode.InternalServerError, "Internal Error");
8989
break;
9090
}
9191

92-
93-
9492
if (result == null)
9593
{
9694
ParseError(ref context, HttpStatusCode.InternalServerError, "Internal Error");
9795
}
98-
99-
10096
else if (result.statusCode == HttpStatusCode.OK)
10197
{
10298
context.Response.StatusCode = (int)result.statusCode;

0 commit comments

Comments
 (0)