A
Abdul
I am working on a .net project and need some help. The project
contains different components. Each component is in its privated
assembly. For e.g Component1 is a C# library project in VS.net and
compiles to a dll. Similarly Component2. All components implement an
interface IService which has a Start() method. Now each component is
configured through a config file. The components are created by a
ServiceFactory. Each component has to be run as a window's service. So
I want to write a single Windows Service which then creates the right
component by using the ServiceFactory and the config file. The windows
service is just a wrapper around these components. It would call the
components Start() method at regular interval. My question: How do I
deploy this desgin so I dont have to write individual services for
each component instead of a generic service that instantiates the
right component accordingly and each component can read a different
config file. Can I use the same dll(may be in different folders) for
each component to read different config files?
Or do I have to write different service wrappers for a component and
use the dll as a reference?
I hope I was able to explain my problem. Thanks in advance.
contains different components. Each component is in its privated
assembly. For e.g Component1 is a C# library project in VS.net and
compiles to a dll. Similarly Component2. All components implement an
interface IService which has a Start() method. Now each component is
configured through a config file. The components are created by a
ServiceFactory. Each component has to be run as a window's service. So
I want to write a single Windows Service which then creates the right
component by using the ServiceFactory and the config file. The windows
service is just a wrapper around these components. It would call the
components Start() method at regular interval. My question: How do I
deploy this desgin so I dont have to write individual services for
each component instead of a generic service that instantiates the
right component accordingly and each component can read a different
config file. Can I use the same dll(may be in different folders) for
each component to read different config files?
Or do I have to write different service wrappers for a component and
use the dll as a reference?
I hope I was able to explain my problem. Thanks in advance.