Example #1
0
        ///
        /// <summary>Main for ClosingClient</summary>
        /// <param name="args"></param>
        ///
        public static void Main(String[] args)
        {
            string uri = "tcp://localhost:4001";

            if (args.Length > 0)
            {
                uri = args[0];
            }



            MainClosingClient   implFactory = new MainClosingClient();
            RemoteClosingServer server      = ClosingHelper.NewServer(uri, null, implFactory);

            Console.WriteLine("MainClosingClient.startingServer");


            server._StartAndWaitUp(4000);

            Console.WriteLine("MainClosingClient.serverUp");

            Thread.Sleep(100);

            Console.WriteLine("MainClosingClient.sayingCloseToServer");
            server.close();
            Console.WriteLine("MainClosingClient.saidCloseToServer");

            Thread.Sleep(100);

            Console.WriteLine("MainClosingClient.waitingServerDown");

            server._WaitDown(4000);

            Console.WriteLine("MainClosingClient.serverDown");
        }
Example #2
0
 ///
 /// <summary>Constructs the ImplClosingClient.</summary>
 ///
 /// <param name=server></param>
 ///
 public ImplClosingClient(RemoteClosingServer server)
 {
     this.server = server;
 }
Example #3
0
 ///
 /// <summary>Return a new instance of ClosingClient.</summary>
 /// @param server
 ///
 public ClosingClient NewClosingClient(RemoteClosingServer server)
 {
     return(new ImplClosingClient(server));
 }