Class CommandBuilder
Provides ability to build the command instance.
Inheritance
System.Object
CommandBuilder
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: FixAntenna.AdminTool.Builder
Assembly: FixAntenna.AdminTool.dll
Syntax
public class CommandBuilder
Fields
ClassCommandCash
Declaration
protected readonly Dictionary<CommandBuilder.MapKey, Type> ClassCommandCash
Field Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<CommandBuilder.MapKey, System.Type> |
Methods
BuildCommand(String, String)
Creates the command instance.
Declaration
public virtual Command BuildCommand(string commandName, string externalPackage)
Parameters
Type | Name | Description |
---|---|---|
System.String | commandName | the command name |
System.String | externalPackage | the package where command situated |
Returns
Type | Description |
---|---|
Command |
GetCommandClass(String, String)
Returns class by short name.
Declaration
public static Type GetCommandClass(string nameOfPackage, string className)
Parameters
Type | Name | Description |
---|---|---|
System.String | nameOfPackage | the name of package. |
System.String | className | the short name of class. |
Returns
Type | Description |
---|---|
System.Type | Instance of Class or null if class with input shortname not found.. |
GetInstance()
Declaration
public static CommandBuilder GetInstance()
Returns
Type | Description |
---|---|
CommandBuilder |