Forum Stats

  • 3,837,076 Users
  • 2,262,223 Discussions
  • 7,900,198 Comments

Discussions

Web Api for Self-Hosting and Web-Hosting

User_SQDZD
User_SQDZD Member Posts: 4 Green Ribbon

Is there a recommended practice for supporting self-hosting and web-hosting simultaneously?

I had a lot of issues to work through. Because of HttpContext.Current is not set and The GlobalConfiguration is not accessible in self-hosting, autofac does not work properly.

Are there any other issues to be aware of?