I have a regarding Channels in .Net
I have a server application that do some hard work and allows client application to get objects through IPC.
Client application get objects from server using Activator.GetObject() function. Evetything works OK now, but i do not understand one thing.
Allow me to show some code:
System.Collections.Hashtable properties = new System.Collections.Hashtable();
BinaryServerFormatterSinkProvider serverProv = new BinaryServerFormatterSinkProvider();
BinaryClientFormatterSinkProvider clientProv = new BinaryClientFormatterSinkProvider();
// IPC registration
string strPortName = "Client";
properties["name"] = strPortName;
channel = new IpcChannel(properties, clientProv, serverProv);
// get MyObject form Server
string url = "ipc://Server/MyObject.rem";
MyObject myObjectFromServer = (MyObject)Activator.GetObject(typeof(MyObject), url);
I do it the same way as above and my question is. Do I have to register my IPC channel in my Client application? If so, how it applies to IPC registered on my server and why I have to register it even if its name is different?
View Complete Post