Class DefaultCommandRegistry
A default command registry.
Inheritance
System.Object
DefaultCommandRegistry
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Application.Console
Assembly: Kephas.Application.Console.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultCommandRegistry : ICommandRegistry
Constructors
| Improve this Doc View SourceDefaultCommandRegistry(IAppRuntime, ITypeLoader)
Initializes a new instance of the DefaultCommandRegistry class.
Declaration
public DefaultCommandRegistry(IAppRuntime appRuntime, ITypeLoader typeLoader)
Parameters
Type | Name | Description |
---|---|---|
IAppRuntime | appRuntime | The application runtime. |
ITypeLoader | typeLoader | The type loader. |
Methods
| Improve this Doc View SourceGetCommandTypes()
Gets the command types.
Declaration
public IEnumerable<ITypeInfo> GetCommandTypes()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ITypeInfo> | The command types. |
ResolveCommandType(String)
Resolves the command type.
Declaration
public ITypeInfo ResolveCommandType(string command)
Parameters
Type | Name | Description |
---|---|---|
System.String | command | The command. |
Returns
Type | Description |
---|---|
ITypeInfo | An ITypeInfo. |