expression

< Back


MySetup

Namespace: Albatross.Expression.Utility

Application setup class that configures dependency injection services for the Expression Utility. Registers command handlers, parsers, execution context, and configuration services.

public class MySetup : Albatross.CommandLine.Setup

Inheritance Object → Setup → MySetup

Properties

RootCommandDescription

protected string RootCommandDescription { get; }

Property Value

String

RootCommand

public RootCommand RootCommand { get; }

Property Value

RootCommand

CommandBuilder

public CommandLineBuilder CommandBuilder { get; }

Property Value

CommandLineBuilder

Constructors

MySetup()

public MySetup()

Methods

RegisterServices(InvocationContext, IConfiguration, EnvironmentSetting, IServiceCollection)

Configures the dependency injection container with application-specific services. Registers expression parser, custom execution context, configuration, and command handlers.

public void RegisterServices(InvocationContext context, IConfiguration configuration, EnvironmentSetting envSetting, IServiceCollection services)

Parameters

context InvocationContext
The invocation context from the command line.

configuration IConfiguration
Application configuration instance.

envSetting EnvironmentSetting
Environment-specific settings.

services IServiceCollection
Service collection to register dependencies into.


< Back