Posted on 2003-03-27
I am mid way through writing a .Net Remoted object. I have the server, the client and the object. Everything is operating normally. My only issue with this whole affair is that I need to keep the server running at all times.
All the samples do something like :
chan = new TcpChannel(8085);
System.Type typ = typeof(AuthEngine.CreditCardEngine);
RemotingConfiguration.ApplicationName = "CreditCardAuthAuthorization";
RemotingConfiguration.RegisterWellKnownServiceType (typ, "Authorization", WellKnownObjectMode.SingleCall);
ReadLine ("Press return to end")
This seems really flaky. As a temporary measure I put this code in a form and made the channel a member variable which would destroy (ie unregister) when the form is closed. This still means I have a floating form on the screen.
Q) Has anybody done anything more elegant than this?