internal static void Main(string[] args) { IWindsorContainer container = new WindsorContainer(new XmlInterpreter("../../ServerConfig.xml")); //Testing the component IRemoteConsole remoteConsole = (IRemoteConsole)container["remote.console"]; remoteConsole.WriteLine("Server started....press a key to stop."); Console.ReadLine(); }
static void Main(String[] args) { IWindsorContainer container = new WindsorContainer(new XmlInterpreter("../../ClientConfig.xml")); // The component doesn't exists here, so it's a remoteComponent IRemoteConsole remoteConsole = (IRemoteConsole)container["remote.console"]; remoteConsole.WriteLine("Writing this text from Client into Server."); Console.WriteLine("....press a key to stop"); Console.ReadLine(); }