G
Guest
I have an HttpModule that I want to communicate to a .NET remoting server.
Normally I do something like:
RemotingConfiguration.RegisterWellKnownClientType(typeof(RemotingObject),
"tcp://localhost:9400/RemotingServer/visa.dps.ppc.RemotingObject.rem");
This does some "magic" so whenever I instantiate the RemotingObject it is
connected to the server. This works fine for clients that I have relative
control over but with an HttpModule I am not sure how to proceed. If I need
to use the remoting service in each of the events that I have register of on
init, do I need to run the above registration in every event handler that the
HttpModule is listening for? Can I do it once in the application? How do I
tell that the application is not "registered"? Is there alot of overhead for
the registration? I guess I have the same questions for instantiating the
remoting object.
Thank you for your help.
Kevin
Normally I do something like:
RemotingConfiguration.RegisterWellKnownClientType(typeof(RemotingObject),
"tcp://localhost:9400/RemotingServer/visa.dps.ppc.RemotingObject.rem");
This does some "magic" so whenever I instantiate the RemotingObject it is
connected to the server. This works fine for clients that I have relative
control over but with an HttpModule I am not sure how to proceed. If I need
to use the remoting service in each of the events that I have register of on
init, do I need to run the above registration in every event handler that the
HttpModule is listening for? Can I do it once in the application? How do I
tell that the application is not "registered"? Is there alot of overhead for
the registration? I guess I have the same questions for instantiating the
remoting object.
Thank you for your help.
Kevin