static void Main(string[] args) { Global.DefaultSerializer = new JsonSerializer(); Global.DefaultWatcher.IsDebugEnable = false; PrintHelp(); ISomeService realService = new DummyImplementation(); IRpcServerCoordinator server = RpcFactory.CreateServer(realService, serverId: "UnitTest"); server.Start(); string outValue; var client = RpcFactory.CreateClient <ISomeService>(); client.TryParse(out outValue); Console.WriteLine(); Console.WriteLine(); Global.DefaultWatcher.InfoFormat("Method TryParse was executed remotely, out value is {0}", outValue); Console.WriteLine(); Console.WriteLine(); Console.WriteLine(); Global.DefaultWatcher.InfoFormat("... change the method to something else to continue to test"); Console.ReadKey(); }
static void Main(string[] args) { Global.DefaultSerializer = new JsonSerializer(); Global.DefaultWatcher.IsDebugEnable = false; PrintHelp(); ISomeService realService = new DummyImplementation(); IRpcServerCoordinator server = RpcFactory.CreateServer(realService, serverId: "UnitTest"); server.Start(); string outValue; var client = RpcFactory.CreateClient<ISomeService>(); client.TryParse(out outValue); Console.WriteLine(); Console.WriteLine(); Global.DefaultWatcher.InfoFormat("Method TryParse was executed remotely, out value is {0}", outValue); Console.WriteLine(); Console.WriteLine(); Console.WriteLine(); Global.DefaultWatcher.InfoFormat("... change the method to something else to continue to test"); Console.ReadKey(); }