ExtensionBase Interface
Namespace: DensoCreate.Cli.Framework
Description
A base class providing common processing for extensions.
Inherit Base
Name | Description |
---|---|
IExtension | An extension interface. |
Property
Name | Description |
---|---|
Host | Gets the application. |
Name | Gets or sets the extension name. |
Method
Name | Description |
---|---|
Activate | Activates the extension. |
Deactivate | Deactivates the extension. |
GetService<T> | Gets the services registered in the extension. |
OnActivated | Activates the service registered in the extension. |
OnConfigureServices | Configures the service. This method is called after the service's DI registration is complete. |
OnDeactivated | Deactivates the service registered in the inherited class. |
OnRegisterCommands | Registers commands. By default, commands in the same assembly as the extension are automatically registered. |
OnRegisterServices | Registers services in dependency injection. |