Skip to main content

ExtensionBase Interface

Namespace: DensoCreate.Cli.Framework

Description

A base class providing common processing for extensions.

Inherit Base

NameDescription
IExtensionAn extension interface.

Property

NameDescription
HostGets the application.
NameGets or sets the extension name.

Method

NameDescription
ActivateActivates the extension.
DeactivateDeactivates the extension.
GetService<T>Gets the services registered in the extension.
OnActivatedActivates the service registered in the extension.
OnConfigureServicesConfigures the service.
This method is called after the service's DI registration is complete.
OnDeactivatedDeactivates the service registered in the inherited class.
OnRegisterCommandsRegisters commands.
By default, commands in the same assembly as the extension are automatically registered.
OnRegisterServicesRegisters services in dependency injection.