private static void ValidateNTServiceSettings()

in src/PatchOrchestrationApplication/NodeAgentService/src/NTServiceConfigurationUtility.cs [41:93]


        private static void ValidateNTServiceSettings(ConfigurationSection configurationSection, FabricClient fabricClient, ServiceContext serviceContext)
        {
            if (configurationSection != null)
            {

                string paramName = "WUOperationRetryCount";
                if (configurationSection.Parameters.Contains(paramName))
                {
                    ValidateParameter<long>(paramName, configurationSection.Parameters[paramName].Value, fabricClient, serviceContext);
                }

                paramName = "WUDelayBetweenRetriesInMinutes";
                if (configurationSection.Parameters.Contains(paramName))
                {
                    ValidateParameter<long>(paramName, configurationSection.Parameters[paramName].Value, fabricClient, serviceContext);
                }
                paramName = "WUOperationTimeOutInMinutes";
                if (configurationSection.Parameters.Contains(paramName))
                {
                    ValidateParameter<long>(paramName, configurationSection.Parameters[paramName].Value, fabricClient, serviceContext);
                }
                paramName = "WURescheduleTimeInMinutes";
                if (configurationSection.Parameters.Contains(paramName))
                {
                    ValidateParameter<long>(paramName, configurationSection.Parameters[paramName].Value, fabricClient, serviceContext);
                }
                paramName = "WURescheduleCount";
                if (configurationSection.Parameters.Contains(paramName))
                {
                    ValidateParameter<long>(paramName, configurationSection.Parameters[paramName].Value, fabricClient, serviceContext);
                }
                paramName = "DisableWindowsUpdates";
                if (configurationSection.Parameters.Contains(paramName))
                {
                    ValidateParameter<bool>(paramName, configurationSection.Parameters[paramName].Value, fabricClient, serviceContext);
                }
                paramName = "OperationTimeOutInMinutes";
                if (configurationSection.Parameters.Contains(paramName))
                {
                    ValidateParameter<long>(paramName, configurationSection.Parameters[paramName].Value, fabricClient, serviceContext);
                }
                paramName = "InstallWindowsOSOnlyUpdates";
                if (configurationSection.Parameters.Contains(paramName))
                {
                    ValidateParameter<bool>(paramName, configurationSection.Parameters[paramName].Value, fabricClient, serviceContext);
                }
                paramName = "AcceptWindowsUpdateEula";
                if (configurationSection.Parameters.Contains(paramName))
                {
                    ValidateParameter<bool>(paramName, configurationSection.Parameters[paramName].Value, fabricClient, serviceContext);
                }
            }
        }