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); }
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); }
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); }
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); }