You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varserver=new WebServer(o => o.WithUrlPrefix(url).WithMode(HttpListenerMode.EmbedIO))// First, we will configure our web server by adding Modules..WithLocalSessionManager().WithWebApi("/api",m => m.WithController<BasicController>())//.WithModule(new WebSocketChatModule("/chat"))//.WithModule(new WebSocketTerminalModule("/terminal"))//.WithStaticFolder("/", HtmlRootPath, true, m => m//.WithContentCaching(UseFileCache)) // Add static files after other modules to avoid conflicts.WithModule(new ActionModule("/", HttpVerbs.Any,ctx => ctx.SendDataAsync(new{ Message ="Error"})));//server.Options// Listen for state changes.
server.StateChanged +=(s,e)=>{ Console.WriteLine($"WebServer New State - "+ e.NewState);$"WebServer New State - {e.NewState}".Info();};
Embedio
Version 3.5.2
Screenshots
Desktop (please complete the following information):
OS: WIN10
Version app .net farmworker version 4.6.1
API TEST Tool:POSTMAN
The text was updated successfully, but these errors were encountered:
varserver=new WebServer(o => o.WithUrlPrefix(url).WithMode(HttpListenerMode.EmbedIO))// First, we will configure our web server by adding Modules..WithLocalSessionManager().WithWebApi("/api", SerializationCallback,m => m.WithController(()=>new BasicController())).WithModule(new ActionModule("/", HttpVerbs.Any,ctx => ctx.SendDataAsync(new{ Message ="Error"})));
Describe the bug
this is my configuration.
Embedio
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: