public HomeController() { modelHandler = new DefaultBuildMonitorModelHandler(); //modelHandler = new CustomBuildMonitorModelHandler(); RequestHelper.Username = ConfigurationManager.AppSettings["teamcity_username"]; RequestHelper.Password = ConfigurationManager.AppSettings["teamcity_password"]; }
public HomeController() { modelHandler = new DefaultBuildMonitorModelHandler(); //modelHandler = new CustomBuildMonitorModelHandler(); RequestHelper.Username = ConfigurationManager.AppSettings["teamcity_username"]; RequestHelper.Password = ConfigurationManager.AppSettings["teamcity_password"]; }
/// <summary> /// Initializes a new instance of the <see cref="HomeController"/> class. /// </summary> public HomeController(IOptions <TeamCityConfiguration> teamcityConfig, IBuildMonitorModelHandler handler, ICompositeViewEngine viewEngine) { modelHandler = handler; this.viewEngine = viewEngine; //modelHandler = new CustomBuildMonitorModelHandler(); RequestHelper.Username = teamcityConfig.Value.UserName; RequestHelper.Password = teamcityConfig.Value.Password; this.teamcityConfig = teamcityConfig; }
public HomeController( IBuildMonitorModelHandler modelHandler, IConfiguration configuration, IRazorViewEngine razorViewEngine, ITempDataProvider tempDataProvider, IServiceProvider serviceProvider, IHttpContextAccessor httpContextAccessor) { _modelHandler = modelHandler; _razorViewEngine = razorViewEngine; _tempDataProvider = tempDataProvider; _serviceProvider = serviceProvider; }
public IndexModel(IOptions <TeamCitySettings> config) { RequestHelper.Username = config.Value.UserName; RequestHelper.Password = config.Value.Password; modelHandler = new DefaultBuildMonitorModelHandler(); //modelHandler = new CustomBuildMonitorModelHandler(); modelHandler.Initialize(config.Value); var model = modelHandler.GetModel(); Projects = model.Projects; }
public PipelinesController(IBuildMonitorModelHandler modelHandler) { _modelHandler = modelHandler; }