public ModuleUnloadedEventArgs(Module module) { Module = module; }
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); } }