public static bool ShouldAvoidAppDomain()
        {
            if (_isAppInsightsAppDomain == null)
            {
                _isAppInsightsAppDomain = AppDomainName.IndexOf("ApplicationInsights", StringComparison.OrdinalIgnoreCase) >= 0;
            }

            return(_isAppInsightsAppDomain.Value);
        }
示例#2
0
        public static bool ShouldAvoidAppDomain()
        {
            if (AppDomainName.IndexOf("ApplicationInsights", StringComparison.OrdinalIgnoreCase) >= 0)
            {
                return(true);
            }

            return(false);
        }