Exemple #1
0
 public bool TryGetSettingsForVersion(string version, out VersionedRequestSettings versionSettings)
 {
     if (version == null)
     {
         throw new ArgumentNullException("version");
     }
     version = (false ? version.Trim() : version);
     return(this.EnabledVersions.TryGetValue(version, out versionSettings));
 }
Exemple #2
0
 private void AddVersion(VersionedRequestSettings versionedSettings, bool isInternal = false)
 {
     if (versionedSettings == null)
     {
         throw new ArgumentNullException("versionedSettings");
     }
     this.AllVersions.Add(versionedSettings);
     this.EnabledVersions.Add(versionedSettings.VersionString, versionedSettings);
 }