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"];
        }
Пример #3
0
        /// <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;
        }
Пример #4
0
 public HomeController(
     IBuildMonitorModelHandler modelHandler,
     IConfiguration configuration,
     IRazorViewEngine razorViewEngine,
     ITempDataProvider tempDataProvider,
     IServiceProvider serviceProvider,
     IHttpContextAccessor httpContextAccessor)
 {
     _modelHandler     = modelHandler;
     _razorViewEngine  = razorViewEngine;
     _tempDataProvider = tempDataProvider;
     _serviceProvider  = serviceProvider;
 }
Пример #5
0
        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;
        }
Пример #6
0
 public PipelinesController(IBuildMonitorModelHandler modelHandler)
 {
     _modelHandler = modelHandler;
 }