/// <summary> /// Initializes a new instance of the <see cref="Host" /> class. /// </summary> /// <param name="ecrUtils">Utilities for interacting with ECR.</param> /// <param name="options">Command line options.</param> /// <param name="lifetime">Service that controls the application lifetime.</param> /// <param name="serviceProvider">Object that provides access to the program's services.</param> public Host( EcrUtils ecrUtils, IOptions <CommandLineOptions> options, IHostApplicationLifetime lifetime, IServiceProvider serviceProvider ) { this.ecrUtils = ecrUtils; this.options = options.Value; this.lifetime = lifetime; Services = serviceProvider; }
/// <summary> /// Initializes a new instance of the <see cref="Host" /> class. /// </summary> /// <param name="stackDeployer">Service for deploying cloudformation stacks.</param> /// <param name="ecsDeployer">Service for deploying ECS services.</param> /// <param name="ecrUtils">Utilities for interacting with ECR.</param> /// <param name="options">Command line options.</param> /// <param name="lifetime">Service that controls the application lifetime.</param> /// <param name="serviceProvider">Object that provides access to the program's services.</param> public Host( StackDeployer stackDeployer, EcsDeployer ecsDeployer, EcrUtils ecrUtils, IOptions <CommandLineOptions> options, IHostApplicationLifetime lifetime, IServiceProvider serviceProvider ) { this.stackDeployer = stackDeployer; this.ecsDeployer = ecsDeployer; this.ecrUtils = ecrUtils; this.options = options.Value; this.lifetime = lifetime; Services = serviceProvider; }