Пример #1
0
        /// <summary>
        /// Processes all include pragmas if they are specified in the root `process-includes` attribute.
        /// This method is called for auto-loaded entry point config automatically.
        /// You may call this method for configs acquired from external sources prior to
        /// passing it to application .ctor
        /// </summary>
        public static void ProcessAllExistingConfigurationIncludes(ConfigSectionNode appConfigRoot)
        {
            appConfigRoot.NonNull(nameof(appConfigRoot));
            var includePragma = appConfigRoot.AttrByName(CONFIG_PROCESS_INCLUDES).Value;

            if (includePragma.IsNotNullOrWhiteSpace())
            {
                appConfigRoot.ProcessAllExistingIncludes(nameof(CommonApplicationLogic), includePragma);
            }
        }