public DeployStatusConfiguration(string name, string webAppUrl, bool performEmailNotificationsCheckOnStartup, TrelloApiConfiguration trello, OctopusApiConfiguration octopus, TeamCityApiConfiguration teamCity, IDeployUserResolver deployUserResolver = null)
 {
     Name = name;
     WebAppUrl = webAppUrl;
     PerformEmailNotificationsCheckOnStartup = performEmailNotificationsCheckOnStartup;
     Trello = trello;
     Octopus = octopus;
     TeamCity = teamCity;
     DeployUserResolver = deployUserResolver ?? new SimpleDeployUserResolver();
 }
Example #2
0
        public TrelloClient(TrelloApiConfiguration configuration)
        {
            restClient = new RestClient("https://api.trello.com/1/");
            restClient.Authenticator = GetAuthenticator(configuration.Authentication);

            restClient.ReadWriteTimeout = 60000;
            restClient.Timeout          = 60000;

            emailResolver = configuration.EmailResolver;
            deploymentLinkingSearchTemplate = GetDeploymentLinkingSearchTemplate(configuration.DeploymentLinkingConfiguration);
            labelSearchTemplate             = GetLabelSearchTemplate(configuration.DeploymentLinkingConfiguration);
            emailNotificationSearchString   = GetEmailNotificationSearchString(configuration.EmailNotificationConfiguration);
            reportAfterDaysInColumn         = configuration.EmailNotificationConfiguration.ReportAfterDaysInColumn;

            log = LogManager.GetLogger(typeof(TrelloClient));
        }
Example #3
0
        public TrelloClient(TrelloApiConfiguration configuration)
        {
            restClient = new RestClient("https://api.trello.com/1/");
            restClient.Authenticator = GetAuthenticator(configuration.Authentication);

            restClient.ReadWriteTimeout = 60000;
            restClient.Timeout = 60000;

            emailResolver = configuration.EmailResolver;
            deploymentLinkingSearchTemplate = GetDeploymentLinkingSearchTemplate(configuration.DeploymentLinkingConfiguration);
            labelSearchTemplate = GetLabelSearchTemplate(configuration.DeploymentLinkingConfiguration);
            emailNotificationSearchString = GetEmailNotificationSearchString(configuration.EmailNotificationConfiguration);
            reportAfterDaysInColumn = configuration.EmailNotificationConfiguration.ReportAfterDaysInColumn;

            log = LogManager.GetLogger(typeof (TrelloClient));
        }