12 декабря 2011 г. 14:34I have some initialization that needs to run before the first service call. With the help of you guys here, it was found that you can do this by creating your own ServiceAutoStartProvider. Are there any downsides to overriding the default microsoft ServiceAutoStartProvider (Microsoft.ApplicationServer.Hosting.AutoStart.ApplicationServerAutoStartProvider)
13 декабря 2011 г. 18:08Модератор
It is hard to think of many disadvantages, I would think of these as more like impacts.
The config details for specifying a ServiceAutoStartProvider are specified in a global way for your IIS server so you do not have much granularity. If you are on shared hosting with other websites this will impact all sites.
If this answers your question, please use the "Answer" button to say so | Ben Cline
- Изменено Ben Cline1MVP, Moderator 15 декабря 2011 г. 14:28
16 декабря 2011 г. 17:03It is my understanding that you configure on a per site basis what ServiceAutoStartProvider to use. The default one being Microsoft.ApplicationServer.Hosting.AutoStart.ApplicationServerAutoStartProvider. You can add as many providers you want but choose which one to use on a per site/application basis.