Program.cs 558 B

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