Browse Source

update beetlex (#4843)

* update beetlex

* Revert "update beetlex"

This reverts commit fbd577339f189ebf14d99b843c8ba13e43f657e3.

* update beetlex

* using package manager

* update

* using beetlex package
Henry 6 years ago
parent
commit
21a76ed0ab

+ 10 - 1
frameworks/CSharp/beetlex/Benchmarks/Benchmarks.csproj

@@ -7,9 +7,18 @@
   </PropertyGroup>
 
   <ItemGroup>
-    <PackageReference Include="BeetleX.FastHttpApi" Version="1.4.9.8" />
+    <PackageReference Include="BeetleX.FastHttpApi" Version="1.5.0" />
     <PackageReference Include="Microsoft.Extensions.Hosting" Version="2.1.1" />
     <PackageReference Include="SpanJson" Version="2.0.10" />
   </ItemGroup>
 
+  <ItemGroup>
+    <Reference Include="BeetleX">
+      <HintPath>Lib\BeetleX.dll</HintPath>
+    </Reference>
+    <Reference Include="BeetleX.FastHttpApi">
+      <HintPath>Lib\BeetleX.FastHttpApi.dll</HintPath>
+    </Reference>
+  </ItemGroup>
+
 </Project>

+ 2 - 1
frameworks/CSharp/beetlex/Benchmarks/Program.cs

@@ -56,7 +56,6 @@ namespace Benchmarks
         {
             plaintextResult = new StringBytes(_helloWorldPayload);
             mApiServer = new HttpApiServer();
-            mApiServer.Register(typeof(Program).Assembly);
             mApiServer.Options.Port = 8080;
             mApiServer.Options.BufferPoolMaxMemory = 500;
             mApiServer.Options.MaxConnections = 100000;
@@ -64,6 +63,8 @@ namespace Benchmarks
             mApiServer.Options.UrlIgnoreCase = false;
             mApiServer.Options.LogLevel = BeetleX.EventArgs.LogType.Off;
             mApiServer.Options.LogToConsole = true;
+            mApiServer.Options.PrivateBufferPool = true;
+            mApiServer.Register(typeof(Program).Assembly);
             mApiServer.HttpRequesting += OnRequesting;
             mApiServer.Open();
             return Task.CompletedTask;