How does WAS/IIS manage ServiceHost instances?
        Posted  
        
            by foosnazzy
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by foosnazzy
        
        
        
        Published on 2010-04-19T15:14:59Z
        Indexed on 
            2010/04/26
            15:43 UTC
        
        
        Read the original article
        Hit count: 438
        
It appears that WAS will call ServiceHostFactory.CreateHost() once per each service implementation. How does WAS manage the lifetime of the ServiceHost/ServiceHostFactory? We have a custom factory/host that is occasionally being re-initialized. I'm wondering if WAS is recycling itself or it has some other reason to re-create the ServiceHostFactory/ServiceHost. I'm guessing the ServiceHostFactory gets fired up for the AppDomain and is a singleton, can someone confirm?
© Stack Overflow or respective owner