Class DependencyInjectionCommand
Base class for commands that use dependency injection.
Inheritance
DependencyInjectionCommand
Assembly: Benday.CommandsFramework.dll
Syntax
public abstract class DependencyInjectionCommand : AsynchronousCommand, IAsyncCommand
Constructors
|
Edit this page
View Source
DependencyInjectionCommand(CommandExecutionInfo, ITextOutputProvider)
Declaration
protected DependencyInjectionCommand(CommandExecutionInfo info, ITextOutputProvider outputProvider)
Parameters
Methods
|
Edit this page
View Source
GetRequiredService<T>()
Get a required service instance from the service provider.
Declaration
protected T GetRequiredService<T>() where T : notnull
Returns
Type Parameters
Implements