asp.net - Web Api app that does not rely on IIS -
i need make single page web application web api doesn't rely on iis.
i've read, should configure run in owin pipeline , remove reference system.web.
is correct?
relying on iis equals have references system.web?
, having references system.web means relying on iis?
the package want rid of microsoft.owin.host.systemweb.
used enable owin server run web api on iis.
you can self-host web api (no dependencies on iis) using this package: microsoft.aspnet.webapi.owinselfhost.
summarizing web api must rely on these packages only:
- microsoft.aspnet.webapi.client
- microsoft.aspnet.webapi.core
- microsoft.aspnet.webapi.owin
- microsoft.aspnet.webapi.owinselfhost
- microsoft.owin
- owin
- microsoft.owin.hosting
- microsoft.owin.host.httplistener
- newtonsoft.json
if want diagnostics can add:
- microsoft.owin.diagnostics
i've published experiment on github tests, if you're interested.
Comments
Post a Comment