Class CommandRepository
Implements
Inherited Members
Namespace: DotNetNuke.Prompt
Assembly: DotNetNuke.dll
Syntax
public class CommandRepository : ServiceLocator<ICommandRepository, CommandRepository>, ICommandRepository
Methods
| Improve this Doc View SourceGetCommand(String)
Declaration
public IConsoleCommand GetCommand(string commandName)
Parameters
Type | Name | Description |
---|---|---|
System.String | commandName |
Returns
Type | Description |
---|---|
IConsoleCommand |
GetCommandHelp(IConsoleCommand)
Get help for the specified command.
Declaration
public ICommandHelp GetCommandHelp(IConsoleCommand consoleCommand)
Parameters
Type | Name | Description |
---|---|---|
IConsoleCommand | consoleCommand | Command to get help for. |
Returns
Type | Description |
---|---|
ICommandHelp | ICommandHelp class that can be used by the client to compile a help text. |
GetCommands()
Declaration
public IEnumerable<ICommand> GetCommands()
Returns
Type | Description |
---|---|
IEnumerable<ICommand> |
GetFactory()
Gets the service locator factory.
Declaration
protected override Func<ICommandRepository> GetFactory()
Returns
Type | Description |
---|---|
Func<ICommandRepository> | A factory function. |
Overrides
DotNetNuke.Framework.ServiceLocator<DotNetNuke.Abstractions.Prompt.ICommandRepository, DotNetNuke.Prompt.CommandRepository>.GetFactory()