I am creating a remotable object using WCF. This is a snipped of how I create the remotable object ...
ServiceHost service_host = new ServiceHost(typeof(MyObject), new Uri[] { new Uri("net.pipe://localhost") });
service_host.AddServiceEndpoint(typeof(IMyServer), new NetNamedPipeBinding(), "MyServer");
service_host.Open();
return service_host;
Is there a way to store some variables which are available when the remotable object is instantiated? I would prefer not to control EVERYTHING from the client. Is this possible?