public JasperServerApp()
        {
            Handlers.Discovery(x => x.DisableConventionalDiscovery());

            Hosting
            .UseKestrel()
            .UseUrls("http://localhost:5200")
            .UseStartup <Startup>();
        }
Ejemplo n.º 2
0
 public WebSocketPingPongApp()
 {
     Hosting
     .UseKestrel()
     .UseUrls("http://localhost:3010")
     .Configure(app =>
     {
         app.UseJasperWebSockets().Run(x =>
         {
             x.Response.ContentType = "text/plain";
             return(x.Response.WriteAsync("Hey, I'm here"));
         });
     });
 }
Ejemplo n.º 3
0
 public MyAppRegistry()
 {
     Hosting.UseKestrel();
 }