If I want to selfhost a asp.net web api application with Owin in a windows service, how can I integrate kind of a application pool recycling that IIS offers?
Asked
Active
Viewed 486 times
1 Answers
1
The answer is simple: you cannot. Application pool is an IIS feature that you can only enjoy by hosting on IIS.

Lex Li
- 60,503
- 9
- 116
- 147
-
So wat is the purpose of selfhosting then? This is an important feature you do not want to develop yourself..., – Pascal Feb 01 '16 at 20:58
-
1@Pascal self-hosting is only used in those scenarios when you cannot use IIS. – Lex Li Feb 02 '16 at 01:13
-
ok but still when can I not use IIS ? I am forced to use Linux? Then I wont choose asp.net at least not before asp vnext. Self-Hosted makes no sense to me then its just a big compromise. – Pascal Feb 03 '16 at 21:07
-
@Pascal there are web servers on Linux that support ASP.NET, which either provide application pools directly such as Jexus, or use FastCGI to simulate the pool such as nginx. You simply need to learn those Linux specific ways, and don't be bind to IIS alone. – Lex Li Feb 03 '16 at 21:14
-
Ok fine did not know that. So its jexus + mono. – Pascal Feb 03 '16 at 21:27