public void Start(DeployStatusConfiguration configuration) { deployStatusInfoClient = new DeployStatusInfoClient(configuration); this.deployStatusConfiguration = configuration; timer.Change(TimeSpan.FromMinutes(0), TimeSpan.FromMilliseconds(-1)); log.Info("Timer started"); }
public DeployStatusInfoClient(DeployStatusConfiguration configuration) { octopusClient = new OctopusClient(configuration.Octopus); trelloClient = new TrelloClient(configuration.Trello); teamCityClient = new TeamCityClient(configuration.TeamCity); DeployUserResolver = configuration.DeployUserResolver; log = LogManager.GetLogger(typeof (DeployStatusInfoClient)); }
public DeployStatusService() { log = LogManager.GetLogger(typeof (DeployStatusService)); deployConfiguration = DeployStatusSettingsSection.Settings.AsDeployConfiguration(); }