12345678910111213141516171819202122232425262728293031 |
- 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("fortunes", new FortuneHandlerBuilder())
- .Add<JsonResource>("json")
- .Add<DbResource>("db")
- .Add<QueryResource>("queries")
- .Add<UpdateResource>("updates")
- .Add<CacheResource>("cached-worlds");
- return Host.Create()
- .Handler(tests)
- .Run();
- }
- }
- }
|