Пример #1
0
        /// <summary>
        /// Gets the logging context for the given context index.
        /// </summary>
        private static LogContext GetContext(DContext context)
        {
            LogContext logContext;

            if (contexts.TryGetValue(context, out logContext))
            {
                return(logContext);
            }
            logContext = LogContext.LoadFromRegistry(context, defaultLoggers);
            contexts.TryAdd(context, logContext);
            return(GetContext(context));
        }