public ModuleUnloadedEventArgs(Module module)
 {
     Module = module;
 }
Example #2
0
 private void LoadCommandsFromModule(Module module)
 {
     _moduleCommands.Add(module.Name, new Dictionary<string, object>());
     foreach (var command in module.Commands) {
         var parameterType = command.GetType().GetMethod("Execute").GetParameters().First().ParameterType;
         _moduleCommands[module.Name].Add(parameterType.Name, command);
     }
 }