12345678910111213141516171819202122232425262728293031 |
- using System;
- using System.Threading;
- using System.Threading.Tasks;
- using GenHTTP.Core;
- using GenHTTP.Modules.Core;
- using GenHTTP.Modules.Webservices;
- using Benchmarks.Tests;
- namespace Benchmarks
- {
- public static class Program
- {
- public static int Main(string[] args)
- {
- var tests = Layout.Create()
- .Add("plaintext", Content.From("Hello, World!"))
- .Add<JsonResource>("json");
- return Host.Create()
- .Router(tests)
- .Compression(false)
- .Run();
- }
- }
- }
|