internal ContextInformation GetOriginalContext(IConfigurationContextProviderInternal owner) { if (this.reset) { return(this.inheritedContext); } return(ConfigurationHelpers.GetEvaluationContext(owner)); }
internal ContextInformation GetOriginalContext(IConfigurationContextProviderInternal owner) { if (this.reset) { // if reset, inherited context is authoritative, even if null return(this.inheritedContext); } else { // otherwise use current return(ConfigurationHelpers.GetEvaluationContext(owner)); } }
internal static ContextInformation GetEvaluationContext(IConfigurationContextProviderInternal provider) { if (provider != null) { try { return(provider.GetEvaluationContext()); } catch (ConfigurationErrorsException) { } } return(null); }
internal static ContextInformation GetOriginalEvaluationContext(IConfigurationContextProviderInternal provider) { if (provider != null) { // provider may not need this try/catch, but it doesn't hurt to do it try { return(provider.GetOriginalEvaluationContext()); } catch (ConfigurationErrorsException) { } } return(null); }
internal ContextInformation GetOriginalContext(IConfigurationContextProviderInternal owner) { if (this.reset) { // if reset, inherited context is authoritative, even if null return this.inheritedContext; } else { // otherwise use current return ConfigurationHelpers.GetEvaluationContext(owner); } }
internal static ContextInformation GetOriginalEvaluationContext(IConfigurationContextProviderInternal provider) { if (provider != null) { // provider may not need this try/catch, but it doesn't hurt to do it try { return provider.GetOriginalEvaluationContext(); } catch (ConfigurationErrorsException) { } } return null; }
internal static ContextInformation GetEvaluationContext(IConfigurationContextProviderInternal provider) { if (provider != null) { try { return provider.GetEvaluationContext(); } catch (ConfigurationErrorsException) { } } return null; }