public static IEnumerator PolicyHierarchy() { if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) { throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit")); } return(polmgr.PolicyHierarchy()); }
internal static IEnumerator InternalPolicyHierarchy() { if (InitPolicy()) { AppDomain currentDomain = AppDomain.CurrentDomain; // Before we handle out the policy hierarchy, we // want to make sure that all currently loaded assemblies // have had policy resolved for them. Otherwise, changing // policy could make it so that assemblies we've decided // to load don't end up getting granted what our caching // said they would get. return(polmgr.PolicyHierarchy()); } else { return(null); } }
public static IEnumerator PolicyHierarchy() { return(polmgr.PolicyHierarchy()); }