How to make IIS wait for WCF service gets ready?
Posted
by Kamarey
on Stack Overflow
See other posts from Stack Overflow
or by Kamarey
Published on 2010-04-12T19:48:39Z
Indexed on
2010/04/12
19:53 UTC
Read the original article
Hit count: 223
I have a WCF service hosted in IIS 7. It takes some minutes until this service finish to load its data and ready for external calls. Data loads in internal thread. The problem is that from IIS point the service is ready just after it was activated (by some call), and it process a request without waiting for data to be loaded.
Is it possible to tell IIS that the service is still loading and make this service unavailable for requests? No problem if such request will throw an exception.
© Stack Overflow or respective owner