コード例 #1
0
 public OverrideConfigurationForPullRequestCommand(
     Guid pullDogPullRequestId,
     ConfigurationFileOverride configurationOverride)
 {
     this.PullDogPullRequestId  = pullDogPullRequestId;
     this.ConfigurationOverride = configurationOverride;
 }
コード例 #2
0
        private static void ApplyOverridesToConfiguration(
            ConfigurationFileOverride configurationOverride,
            ConfigurationFile configuration)
        {
            configuration.IsLazy = false;

            if (configurationOverride.BuildArguments != null)
            {
                configuration.BuildArguments = configurationOverride.BuildArguments;
            }

            if (configurationOverride.ConversationMode != default)
            {
                configuration.ConversationMode = configurationOverride.ConversationMode;
            }

            if (configurationOverride.Expiry != default)
            {
                configuration.Expiry = configurationOverride.Expiry;
            }
        }