コード例 #1
0
 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();
 }
コード例 #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));
        }
コード例 #3
0
ファイル: TrelloClient.cs プロジェクト: Jark/DeployStatus
        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));
        }