Example #1
0
        public static T Validate(T settings, ISettingOverride settingOverride,
                                 ISettingError settingError, IApplicationOverride applicationOverride)
        {
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            ValidateAllSettings(settings.GetType(), settings, settingOverride, settingError, applicationOverride);

            return(settings);
        }
Example #2
0
 public static T Validate(T settings, ISettingOverride settingOverride,
                          ISettingError settingError)
 {
     return(Validate(settings, settingOverride, settingError, null));
 }