G
Guest
Hello!
Here is a very common scenario. You have a simple windows service which
instantiates a class in order to do some job, let's say... check your e-mail
inbox once every 10 minutes. And suppose that you have a windows application
from which you would like to access that instance and change some settings of
monitor the process.
I have come to the conlcusion that in order to do that (access the same
instance that the windows service has instantiated) you have to use
remoting!!! Is this the only way? If so, why??? Why should I use remoting
(and all that TCP and Serialization stuff) since I'm not calling a remote
process?
In the COM days we could register the COM instance class in the ROT (with
some simple Win32 API) and access that same instance using the GetObject
function (VB6). Isn't there such a feature in the .NET world?
Dimitris
Here is a very common scenario. You have a simple windows service which
instantiates a class in order to do some job, let's say... check your e-mail
inbox once every 10 minutes. And suppose that you have a windows application
from which you would like to access that instance and change some settings of
monitor the process.
I have come to the conlcusion that in order to do that (access the same
instance that the windows service has instantiated) you have to use
remoting!!! Is this the only way? If so, why??? Why should I use remoting
(and all that TCP and Serialization stuff) since I'm not calling a remote
process?
In the COM days we could register the COM instance class in the ROT (with
some simple Win32 API) and access that same instance using the GetObject
function (VB6). Isn't there such a feature in the .NET world?
Dimitris