/// <summary> /// throw exception if Ad instance does not match requirement /// </summary> /// <param name="current"></param> public static void CheckADSupport(ADInstanceType current) { if (current == ADInstanceType.DS && !EnvironmentConfig.TestDS) { throw new ApplicationException("This is only supported in AD DS environment"); } else if (current == ADInstanceType.LDS && EnvironmentConfig.TestDS) { throw new ApplicationException("This is only supported in AD LDS environment"); } }
public SupportedADTypeAttribute(ADInstanceType adType) { type = adType; }