Пример #1
0
 void Add(ServiceManagerCommand cmd)
 {
     _commands.Add(cmd);
     foreach (var alias in cmd.Details.CommandAliases)
     {
         _commandsByAlias.Add(alias.ToLower(), cmd);
     }
 }
Пример #2
0
 void Add(ServiceManagerCommand cmd)
 {
     _commands.Add(cmd);
     foreach(var alias in cmd.Details.CommandAliases)
         _commandsByAlias.Add(alias.ToLower(), cmd);
 }