Web API Owin self host multiple applications -


we trying setup owin self host service multiple applications (app1, app2).

we'd use same behavior of iis 1 application pool uses 1 appdomain per application.

here code use:

using (webapp.start<webserverstartup>(url: "http://localhost:9000/")) { ... } 

... , webserverstartup implementation:

internal class webserverstartup {     public void configuration(iappbuilder appbuilder)     {         // configure web api self-host.          var config = new httpconfiguration();         config.routes.maphttproute(             name: "defaultapi",             routetemplate: "api/{controller}/{id}",             defaults: new { id = routeparameter.optional }         );          appbuilder.usewebapi(config);     } 

how can use multiple appdomains each application? there way declare multiple webapps using webapp.start(...) in separate appdomains share same port? or there way route requests various appdomains somehow defining route app/api/{controller}/{id} instead of api/{controller}/{id}?

thanks

there's no built in support running apps in separate domains. you'd want start each new appdomain , run webapp.start inside.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -