public HomeController(ILogger <HomeController> logger, IQueueManager queueManager, IHubContext <ClientHub> hubContext, IOptions <AppConfig> Options) { _logger = logger; _appConfig = Options.Value; _androidBuildManager = new AndroidBuildManager(_appConfig.CMDEXE, _appConfig.OutputPath); _gitCommandManager = new GitCommandManager(_appConfig.GitExePath, _appConfig.WorkingDirectory); _queueManager = queueManager; _hubContext = hubContext; _fileManager = new FileManager(); _notificationManager = new NotificationManager(_hubContext); //_logger.LogInformation("logTested"); }
private void Init() { _gitCommandManager = new GitCommandManager(@"" + app.AppSettings["git:exepath"], @"" + app.AppSettings["git:workingdirectory"]); _gitCommandManagerAndroid = new GitCommandManager(@"" + app.AppSettings["git:exepath"], @"" + app.AppSettings["git:workingdirectoryandroid"]); _msBuildManager = new MsBuildManager(@"" + app.AppSettings["msbuild:exepath"]); _droidBuildManager = new AndroidBuildManager(@"cmd.exe", app.AppSettings["output:directoryandroid"]); projectLabel.Text = app.AppSettings["project"]; //gitBranchLabel.Text = app.AppSettings["git:branch"]; //environmentLabel.Text = app.AppSettings["environment"]; envComboBox.DataSource = new ComboItem[] { new ComboItem { Id = "Production", Value = "Prod" }, new ComboItem { Id = "Development", Value = "dev" }, new ComboItem { Id = "UAT", Value = "UAT" }, new ComboItem { Id = "QA", Value = "qa" }, new ComboItem { Id = "Debug", Value = "debug" } }; gitComboBox.DataSource = new ComboItem[] { new ComboItem { Id = "Development", Value = "develop" }, new ComboItem { Id = "QA", Value = "QA" }, new ComboItem { Id = "Master", Value = "master" }, new ComboItem { Id = "Build_Automation", Value = "Build_Automation" } }; _countryCheckBoxes = new List <CheckBox> { inCheckBox, phCheckBox, ghCheckBox, ngCheckBox, tzCheckBox, ugCheckBox, rwCheckBox, zmCheckBox, slCheckBox, lkCheckBox, mmCheckBox, keCheckBox, pkCheckBox }; _root = Application.StartupPath; _log = _root + "\\log_" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".log"; this.WindowState = FormWindowState.Maximized; }