Hi,
we are hosting a WCF service inside IIS 6. A ServiceHostFactory creates the ServiceHost when the first request to a service appears. In the OnOpening() Method of the ServiceHost, we load some data into a cache implemented as a static property.
Since loading the data takes about 1 minute we do not want the "first user of the day" to wait for the cache to be filled. The problem is that the ServiceHost and thus the cache are killed with each recycling of the ApplicationPool. Is there any possibility to detect a recycling and refill the cache? Or are there other best practices? I can't believe we are the only ones with this problem...
Thanks in advance!