Пример #1
0
        private static void AddCommand(string name, string description, Func <IBootstrap, string[], bool> handler)
        {
            var command = new ControlCommand
            {
                Name        = name,
                Description = description,
                Handler     = handler
            };

            m_CommandHandlers.Add(command.Name, command);
        }
Пример #2
0
        private static void AddCommand(string name, string description, Func<IBootstrap, string[], bool> handler)
        {
            var command = new ControlCommand
            {
                Name = name,
                Description = description,
                Handler = handler
            };

            m_CommandHandlers.Add(command.Name, command);
        }