public static bool IsVersionBeforeSep09(string xmsVersion) { if (xmsVersion != null && !VersioningHelper.IsPreSeptember09OrInvalidVersion(xmsVersion)) { return(false); } return(true); }
public static bool IsVersionBeforeFeb16(string xmsVersion) { if (xmsVersion != null && !VersioningHelper.IsPreFebruary16OrInvalidVersion(xmsVersion)) { return(false); } return(true); }
public static bool IsPreJuly15OrInvalidVersion(string version) { if (string.IsNullOrEmpty(version)) { return(true); } if (!VersioningConfigurationLookup.Instance.IsValidVersion(version)) { return(true); } return(VersioningHelper.CompareVersions(version, "2015-07-08") < 0); }
public static bool IsPreSeptember12OrInvalidVersion(string version) { if (string.IsNullOrEmpty(version)) { return(true); } if (!VersioningConfigurationLookup.Instance.IsValidVersion(version)) { return(true); } return(VersioningHelper.CompareVersions(version, "2012-09-19") < 0); }
public static bool IsValidMetadataKey(string metadataKey, string version) { bool flag; try { LateBoundMethod lateBoundMethod = MetadataEncoding.validateMetadataMethod; object[] objArray = new object[] { metadataKey, false }; lateBoundMethod(null, objArray); if (VersioningHelper.IsPreSeptember09OrInvalidVersion(version)) { return(true); } return(MetadataEncoding.MetadataKeyRegexForSept09.IsMatch(metadataKey)); } catch (ArgumentException argumentException) { flag = false; } return(flag); }