Program.cs 674 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Threading;
  3. using System.Threading.Tasks;
  4. using GenHTTP.Core;
  5. using GenHTTP.Modules.Core;
  6. using GenHTTP.Modules.Webservices;
  7. using Benchmarks.Tests;
  8. namespace Benchmarks
  9. {
  10. public static class Program
  11. {
  12. public static int Main(string[] args)
  13. {
  14. var tests = Layout.Create()
  15. .Add("plaintext", Content.From("Hello, World!"))
  16. .Add<JsonResource>("json");
  17. return Host.Create()
  18. .Router(tests)
  19. .Compression(false)
  20. .Run();
  21. }
  22. }
  23. }