How do I pass a parameter to the constructor of the implmentation of the remoting interface?
I see that you make an interface, then you implement it, and then I see the following:
Hashtable properties = new Hashtable();
properties.Add("port", m_remotingPort);
BinaryServerFormatterSinkProvider remotingProvider = new BinaryServerFormatterSinkProvider();
TcpChannel channel = new TcpChannel(properties, null, remotingProvider);
ChannelServices.RegisterChannel(channel, false);
RemotingConfiguration.RegisterWellKnownServiceType(GetType(OnlineCourseRemotingImpl), "DataService", WellKnownObjectMode.SingleCall);
OnlineCourseRemotingImpl isn't instantiated by me, so I don't know how to pass it say a connection string, since it will need it to perform its database operations. I don't really want to move it down to the libraries app.config, because I have several services that will share the same connection string and want to pass it from the service itself.
I am new to .NET, hope I made sense.