Getting to the encapsulated class within a ServiceHost object?
C#
1
Posts
1
Posters
0
Views
1
Watching
-
We have about 13 services that my service manager is starting up. All are ServiceHost objects. Some of the services will optionally inherit an IServiceRequestor interface that exposes an initialize and terminate routine that I need to call at startup and shutdown of the service. Problem: The object is encapsulated with the ServiceHost object and I cannot find where I can access the class to run the routines. Has anyone done this? How do I get at the encapsulated object to cast it to my IServiceRequestor object so that the intialize and terminate methods are executed within the ServiceHost's AppDomain?