N
nyhetsgrupper
I have written a windows service and want to expose a web based user
interface for this service. I then wrote a class library containing a
..net remoting server. The class library have a method named
StartRemotingServer(). To be able to call this method from the windows
service I need to reference the remoting class library, but for the
class library to be able to access the internal structures of the
windows service the class library needs to reference the windows
service. Since circular dependecies is not allowed this does not work.
Some of you may tell me there is something wrong with my design,
because circular dependencies should not be necessary, but please give
me an advice on how to change my design. I have head that one method to
resolve circular dependencies is to use reflection. Can anyone show me
some example code to resolve circular dependecies using reflection?
Thank you!
interface for this service. I then wrote a class library containing a
..net remoting server. The class library have a method named
StartRemotingServer(). To be able to call this method from the windows
service I need to reference the remoting class library, but for the
class library to be able to access the internal structures of the
windows service the class library needs to reference the windows
service. Since circular dependecies is not allowed this does not work.
Some of you may tell me there is something wrong with my design,
because circular dependencies should not be necessary, but please give
me an advice on how to change my design. I have head that one method to
resolve circular dependencies is to use reflection. Can anyone show me
some example code to resolve circular dependecies using reflection?
Thank you!