public EventClient(string url) { //set up the remoting for bilateral communciation ChannelServices.RegisterChannel(new HttpChannel(0)); //get the proxy for the remote EventServer object es = (EventServer)Activator.GetObject(typeof(EventServer), url); }
public EventClient(string url) { //set up the remoting for bilateral communciation IDictionary props = new Hashtable(); props["port"] = 0; BinaryClientFormatterSinkProvider clientProvider = new BinaryClientFormatterSinkProvider(); HttpChannel channel = new HttpChannel(props, clientProvider, null); ChannelServices.RegisterChannel(channel, false); //get the proxy for the remote EventServer object es = (EventServer)Activator.GetObject(typeof(EventServer), url); }