public static void Main(string[] args)
        {
            ConfigureNLog(args);

            var clientDriver = new ClientDriver();

            Logger.Info("Reading configuration");

            ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
            clientDriver.Configure(ConfigurationManager.AppSettings);

            Logger.Info("Starting simulation");

            clientDriver.StartSimulation();

            // Wait for 'q' key to be pressed.
            Console.WriteLine("The client is up and running. Press Enter to stop it...");
            Console.In.ReadLine();
            Environment.Exit(0);
        }
Beispiel #2
0
        public static void Main(string[] args)
        {
            ConfigureNLog(args);

            var clientDriver = new ClientDriver();

            Logger.Info("Reading configuration");

            ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
            clientDriver.Configure(ConfigurationManager.AppSettings);

            Logger.Info("Starting simulation");

            clientDriver.StartSimulation();

            // Wait for 'q' key to be pressed.
            Console.WriteLine("The client is up and running. Press Enter to stop it...");
            Console.In.ReadLine();
            Environment.Exit(0);
        }
		public NativeClientApplication (string connectionString)
		{
			clientDriver = new ClientDriver ();
			clientDriver.communicator.Connected += new EventHandler (HandleConnected);
			clientDriver.communicator.OpenConnection (connectionString);	
		}
Beispiel #4
0
 public NativeClientApplication(string connectionString)
 {
     clientDriver = new ClientDriver();
     clientDriver.communicator.Connected += new EventHandler(HandleConnected);
     clientDriver.communicator.OpenConnection(connectionString);
 }