public DiagnosticsViewHandler( [NotNull] IDeploymentTargetReadService deploymentTargetReadService, [NotNull] MultiSourceKeyValueConfiguration configuration, [NotNull] IConfiguration aspNetConfiguration, [NotNull] LoggingLevelSwitch loggingLevelSwitch, [NotNull] EnvironmentConfiguration environmentConfiguration, IServiceProvider serviceProvider, ServiceDiagnostics serviceDiagnostics, ConfigurationInstanceHolder configurationInstanceHolder, ILogger logger, IApplicationSettingsStore settingsStore, IApplicationAssemblyResolver applicationAssemblyResolver, IDistributedCache distributedCache) { _deploymentTargetReadService = deploymentTargetReadService ?? throw new ArgumentNullException(nameof(deploymentTargetReadService)); _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); _aspNetConfiguration = aspNetConfiguration ?? throw new ArgumentNullException(nameof(aspNetConfiguration)); _loggingLevelSwitch = loggingLevelSwitch ?? throw new ArgumentNullException(nameof(loggingLevelSwitch)); _environmentConfiguration = environmentConfiguration; _serviceProvider = serviceProvider; _serviceDiagnostics = serviceDiagnostics; _configurationInstanceHolder = configurationInstanceHolder; _logger = logger; _settingsStore = settingsStore; _applicationAssemblyResolver = applicationAssemblyResolver; _distributedCache = distributedCache; }
public MonitoringController( MonitoringService monitoringService, IDeploymentTargetReadService targetSource) { _monitoringService = monitoringService; _targetSource = targetSource; }
public async Task <IActionResult> Index([FromServices] IDeploymentTargetReadService deploymentTargetReadService) { ImmutableArray <OrganizationInfo> organizations = await deploymentTargetReadService.GetOrganizationsAsync(); var createOrganizationResult = TempData.Get <CreateOrganizationResult>(); return(View(new OrganizationsViewOutputModel(organizations, createOrganizationResult))); }
public DeploymentController( [NotNull] ILogger logger, [NotNull] IDeploymentTargetReadService getTargets, TimeoutHelper timeoutHelper) { _logger = logger; _getTargets = getTargets ?? throw new ArgumentNullException(nameof(getTargets)); _timeoutHelper = timeoutHelper; }
public async Task <IActionResult> Index( [FromServices] IDeploymentTargetReadService deploymentTargetReadService, [FromRoute] string organizationId) { ImmutableArray <ProjectInfo> projects = await deploymentTargetReadService.GetProjectsAsync(organizationId); var createProjectResult = TempData.Get <CreateProjectResult>(); return(View(new ProjectsViewOutputModel(projects, createProjectResult, organizationId))); }
public NuGetSeeder( IMediator mediator, IDeploymentTargetReadService deploymentTargetReadService, ILogger logger, IEnvironmentTypeService environmentTypeService) { _mediator = mediator; _deploymentTargetReadService = deploymentTargetReadService; _logger = logger; _environmentTypeService = environmentTypeService; }
public HookService( IDeploymentTargetReadService targetSource, DeploymentService deploymentService, ILogger logger, MonitoringService monitoringService) { _targetSource = targetSource; _deploymentService = deploymentService; _logger = logger; _monitoringService = monitoringService; }
public PackageWebHookAutoDeployHandler( IDeploymentTargetReadService targetSource, DeploymentWorkerService deploymentService, ILogger logger, MonitoringService monitoringService, IApplicationSettingsStore applicationSettingsStore) { _targetSource = targetSource; _deploymentService = deploymentService; _logger = logger; _monitoringService = monitoringService; _applicationSettingsStore = applicationSettingsStore; }
public async Task <IActionResult> Edit( [FromRoute] string targetId, [FromServices] IDeploymentTargetReadService deploymentTargetReadService) { DeploymentTarget deploymentTarget = await deploymentTargetReadService.GetDeploymentTargetAsync(targetId); if (deploymentTarget is null) { return(RedirectToAction(nameof(Index))); } return(View(new EditTargetViewOutputModel(deploymentTarget))); }
public DataSeedStartupTask( IEnumerable <IDataSeeder> dataSeeders, IKeyValueConfiguration configuration, ILogger logger, TimeoutHelper timeoutHelper, IDeploymentTargetReadService deploymentTargetReadService, IDocumentStore?store = null) { _dataSeeders = dataSeeders.SafeToImmutableArray(); _configuration = configuration; _logger = logger; _timeoutHelper = timeoutHelper; _deploymentTargetReadService = deploymentTargetReadService; _store = store; }
public DeploymentController( [NotNull] ILogger logger, [NotNull] IDeploymentTargetReadService getTargets) { if (logger == null) { throw new ArgumentNullException(nameof(logger)); } if (logger == null) { throw new ArgumentNullException(nameof(logger)); } _getTargets = getTargets ?? throw new ArgumentNullException(nameof(getTargets)); }
public DiagnosticsViewHandler( [NotNull] IDeploymentTargetReadService deploymentTargetReadService, [NotNull] MultiSourceKeyValueConfiguration configuration, [NotNull] Scope scope, [NotNull] IConfiguration aspNetConfiguration, [NotNull] LoggingLevelSwitch loggingLevelSwitch, [NotNull] EnvironmentConfiguration environmentConfiguration) { _deploymentTargetReadService = deploymentTargetReadService ?? throw new ArgumentNullException(nameof(deploymentTargetReadService)); _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); _scope = scope ?? throw new ArgumentNullException(nameof(scope)); _aspNetConfiguration = aspNetConfiguration ?? throw new ArgumentNullException(nameof(aspNetConfiguration)); _loggingLevelSwitch = loggingLevelSwitch ?? throw new ArgumentNullException(nameof(loggingLevelSwitch)); _environmentConfiguration = environmentConfiguration; }
public AutoDeployBackgroundService( [NotNull] IDeploymentTargetReadService deploymentTargetReadService, [NotNull] MonitoringService monitoringService, [NotNull] DeploymentWorker deploymentWorker, [NotNull] AutoDeployConfiguration autoDeployConfiguration, [NotNull] ILogger logger, [NotNull] PackageService packageService) { _deploymentTargetReadService = deploymentTargetReadService ?? throw new ArgumentNullException(nameof(deploymentTargetReadService)); _monitoringService = monitoringService ?? throw new ArgumentNullException(nameof(monitoringService)); _deploymentWorker = deploymentWorker ?? throw new ArgumentNullException(nameof(deploymentWorker)); _autoDeployConfiguration = autoDeployConfiguration ?? throw new ArgumentNullException(nameof(autoDeployConfiguration)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _packageService = packageService ?? throw new ArgumentNullException(nameof(packageService)); }
public DeploymentService( [NotNull] ILogger logger, [NotNull] IDeploymentTargetReadService targetSource, [NotNull] IMediator mediator, [NotNull] MilouDeployer deployer, [NotNull] IKeyValueConfiguration keyValueConfiguration, [NotNull] ICustomClock customClock, [NotNull] LoggingLevelSwitch loggingLevelSwitch) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _targetSource = targetSource ?? throw new ArgumentNullException(nameof(targetSource)); _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _deployer = deployer ?? throw new ArgumentNullException(nameof(deployer)); _keyValueConfiguration = keyValueConfiguration ?? throw new ArgumentNullException(nameof(keyValueConfiguration)); _customClock = customClock ?? throw new ArgumentNullException(nameof(customClock)); _loggingLevelSwitch = loggingLevelSwitch ?? throw new ArgumentNullException(nameof(loggingLevelSwitch)); }
public DeployFinishedNotificationHandler( [NotNull] ISmtpService smtpService, [NotNull] IDeploymentTargetReadService targetSource, [NotNull] ILogger logger, EmailConfiguration emailConfiguration = null) { _smtpService = smtpService ?? throw new ArgumentNullException(nameof(smtpService)); _targetSource = targetSource ?? throw new ArgumentNullException(nameof(targetSource)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _emailConfiguration = emailConfiguration ?? new EmailConfiguration( null, null, -1, false, null, null, 30, false); }
public MilouDeployer( [NotNull] MilouDeployerConfiguration milouDeployerConfiguration, [NotNull] IDeploymentTargetReadService deploymentTargetReadService, [NotNull] ICredentialReadService credentialReadService, [NotNull] IKeyValueConfiguration keyValueConfiguration, [NotNull] CustomHttpClientFactory clientFactory) { _milouDeployerConfiguration = milouDeployerConfiguration ?? throw new ArgumentNullException(nameof(milouDeployerConfiguration)); _deploymentTargetReadService = deploymentTargetReadService ?? throw new ArgumentNullException(nameof(deploymentTargetReadService)); _credentialReadService = credentialReadService ?? throw new ArgumentNullException(nameof(credentialReadService)); _keyValueConfiguration = keyValueConfiguration ?? throw new ArgumentNullException(nameof(keyValueConfiguration)); _clientFactory = clientFactory; }
public WorkerSetupStartupTask( IKeyValueConfiguration configuration, ILogger logger, IDeploymentTargetReadService deploymentTargetReadService, ConfigurationInstanceHolder holder, IMediator mediator, WorkerConfiguration workerConfiguration, TimeoutHelper timeoutHelper, ICustomClock clock, IServiceProvider serviceProvider) { _configuration = configuration; _logger = logger; _deploymentTargetReadService = deploymentTargetReadService; _holder = holder; _mediator = mediator; _workerConfiguration = workerConfiguration; _timeoutHelper = timeoutHelper; _clock = clock; _serviceProvider = serviceProvider; }
public AutoDeployBackgroundService( [NotNull] IDeploymentTargetReadService deploymentTargetReadService, [NotNull] MonitoringService monitoringService, [NotNull] DeploymentWorkerService deploymentWorkerService, [NotNull] AutoDeployConfiguration autoDeployConfiguration, [NotNull] ILogger logger, [NotNull] IPackageService packageService, TimeoutHelper timeoutHelper, IApplicationSettingsStore applicationSettingsStore) { _deploymentTargetReadService = deploymentTargetReadService ?? throw new ArgumentNullException(nameof(deploymentTargetReadService)); _monitoringService = monitoringService ?? throw new ArgumentNullException(nameof(monitoringService)); _deploymentWorkerService = deploymentWorkerService ?? throw new ArgumentNullException(nameof(deploymentWorkerService)); _autoDeployConfiguration = autoDeployConfiguration ?? throw new ArgumentNullException(nameof(autoDeployConfiguration)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _packageService = packageService ?? throw new ArgumentNullException(nameof(packageService)); _timeoutHelper = timeoutHelper; _applicationSettingsStore = applicationSettingsStore; }
public TargetsController([NotNull] IDeploymentTargetReadService targetSource) { _targetSource = targetSource ?? throw new ArgumentNullException(nameof(targetSource)); }
public AgentPoolSeeder(IMediator mediator, ILogger logger, IDeploymentTargetReadService deploymentTargetReadService) { _mediator = mediator; _logger = logger; _deploymentTargetReadService = deploymentTargetReadService; }
public PackageWebHookHubHandler(IHubContext <TargetHub> targetHubContext, IDeploymentTargetReadService readService) { _targetHubContext = targetHubContext; _readService = readService; }
public TargetsController([NotNull] IDeploymentTargetReadService targetSource) =>