• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class CommandRepository

Inheritance
System.Object
ServiceLocator<ICommandRepository, CommandRepository>
CommandRepository
Implements
ICommandRepository
Inherited Members
ServiceLocator<ICommandRepository, CommandRepository>.Instance
ServiceLocator<ICommandRepository, CommandRepository>.Factory
ServiceLocator<ICommandRepository, CommandRepository>.SetTestableInstance(ICommandRepository)
ServiceLocator<ICommandRepository, CommandRepository>.ClearInstance()
ServiceLocator<ICommandRepository, CommandRepository>.GetFactory()
Namespace: DotNetNuke.Prompt
Assembly: DotNetNuke.dll
Syntax
public class CommandRepository : ServiceLocator<ICommandRepository, CommandRepository>, ICommandRepository

Methods

| Improve this Doc View Source

GetCommand(String)

Declaration
public IConsoleCommand GetCommand(string commandName)
Parameters
Type Name Description
System.String commandName
Returns
Type Description
IConsoleCommand
| Improve this Doc View Source

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.

| Improve this Doc View Source

GetCommands()

Declaration
public IEnumerable<ICommand> GetCommands()
Returns
Type Description
IEnumerable<ICommand>
| Improve this Doc View Source

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()

Implements

ICommandRepository

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS