public static IConfigurationLoader[] GlassLoaders()
        {
            var pipelineArgs = new GetGlassLoadersPipelineArgs();

            GetGlassLoadersPipeline.Run(pipelineArgs);
            return(pipelineArgs.GlassLoaders.ToArray());
        }
Пример #2
0
        public virtual IConfigurationLoader[] GetGlassLoaders(Context context)
        {
            var getGlassLoadersArgs = new GetGlassLoadersPipelineArgs
            {
                Context = context,
                Loaders = new List <IConfigurationLoader>()
            };

            GetGlassLoadersPipeline.Run(getGlassLoadersArgs);
            return(getGlassLoadersArgs.Loaders.ToArray());
        }