Пример #1
0
        private static void Main(string[] args)
        {
            System.Console.Title = Constants.ServiceName + " Management Console";
            var compositeRoot = new CompositeRoot();

            var command = new RootCommand(compositeRoot.ClientConsole);

            command.RegisterCommand(new ConfigCommands(compositeRoot));
            command.RegisterCommand(new ServiceCommands(compositeRoot));
            command.RegisterCommand(new CounterCommands(compositeRoot));

           new CommandEngine(command).Run(args);
        }
Пример #2
0
        private static void Main(string[] args)
        {
            System.Console.Title = Constants.ServiceName + " Management Console";
            var compositeRoot = new CompositeRoot();

            var command = new RootCommand(compositeRoot.ClientConsole);

            command.RegisterCommand(new ConfigCommands(compositeRoot));
            command.RegisterCommand(new ServiceCommands(compositeRoot));
            command.RegisterCommand(new CounterCommands(compositeRoot));
            command.RegisterCommand(new PublishCommands(compositeRoot));
            command.RegisterCommand(new SenderCommands(compositeRoot));

            new CommandEngine(command).Run(args);
        }
Пример #3
0
        private static void Main(string[] args)
        {
            System.Console.Title = Constants.ServiceName + " Management Console";

            CounterBusiness.ChangedCurrentCultureEvent += CounterBusiness_ChangedCurrentCultureEvent;
            _compositeRoot = new CompositeRoot();

            var clientConsole = _compositeRoot.ClientConsole;
            clientConsole.KeyReadEvent += ClientConsole_KeyReadEvent;
            var command = new RootCommand(clientConsole);

            command.RegisterCommand(new ConfigCommands(_compositeRoot));
            command.RegisterCommand(new ServiceCommands(_compositeRoot));
            command.RegisterCommand(new CounterCommands(_compositeRoot));
            command.RegisterCommand(new PublishCommands(_compositeRoot));
            command.RegisterCommand(new SenderCommands(_compositeRoot));

            new CommandEngine(command).Run(args);
        }
Пример #4
0
        private static void Main(string[] args)
        {
            _compositeRoot = new CompositeRoot();
            var clientConsole = _compositeRoot.ClientConsole;
            var command       = new RootCommand(clientConsole);

            System.Console.Title = Constants.ServiceName + " Management Console";

            CounterBusiness.ChangedCurrentCultureEvent += CounterBusiness_ChangedCurrentCultureEvent;

            clientConsole.KeyReadEvent += ClientConsole_KeyReadEvent;

            command.RegisterCommand(new ConfigCommands(_compositeRoot));
            command.RegisterCommand(new ServiceCommands(_compositeRoot));
            command.RegisterCommand(new CounterCommands(_compositeRoot));
            command.RegisterCommand(new PublishCommands(_compositeRoot));
            command.RegisterCommand(new SenderCommands(_compositeRoot));

            new CommandEngine(command).Run(args);
        }