예제 #1
0
 /// <summary>
 /// ctors an instance with the provided commands from the provided assemblies
 /// </summary>
 public Engine(IEnumerable <Assembly> assemblies)
 {
     _commandRepository = new ConsoleCommandRepository();
     _commandRepository.AddCommands(assemblies);
 }
예제 #2
0
 /// <summary>
 /// ctors an instance with the provided command types
 /// </summary>
 public Engine(IEnumerable <Type> types)
 {
     _commandRepository = new ConsoleCommandRepository();
     _commandRepository.AddCommands(types);
 }