Show / Hide Table of Contents

Class DependencyInjectionCommand

Base class for commands that use dependency injection.

Inheritance
object
CommandBase
AsynchronousCommand
DependencyInjectionCommand
Implements
IAsyncCommand
Inherited Members
AsynchronousCommand.ExecuteAsync()
AsynchronousCommand.OnValidationFailure(List<IArgument>)
AsynchronousCommand.OnExecute()
CommandBase._OutputProvider
CommandBase.ExecutionInfo
CommandBase.Arguments
CommandBase.GetArgValueOrRequiredConfigValue(string, string)
CommandBase.GetArguments()
CommandBase.Description
CommandBase.WriteLine(string)
CommandBase.WriteLine()
CommandBase.DisplayUsage()
CommandBase.DisplayUsage(StringBuilder)
CommandBase.DisplayValidationSummary(List<IArgument>)
CommandBase.Validate()
CommandBase.SetValuesFromExecutionInfo()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Benday.CommandsFramework
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
Type Name Description
CommandExecutionInfo info
ITextOutputProvider outputProvider

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 Description
T
Type Parameters
Name Description
T

Implements

IAsyncCommand
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com