Пример #1
0
 public static void InstantiateFilters(
     ProviderSettingsCollection settings, FilterChain <T> sections)
 {
     foreach (ProviderSettings setting in settings)
     {
         sections.Add(InstantiateFilter(setting));
     }
 }
        public static PipelineManager <T> Create <T>(PipelineConfigurationElement pipelineSettings)
        {
            var processor = ((ICoreProcessor <T>)ObjectFactory.Create(pipelineSettings.ProcessorType));

            var filterChain = new FilterChain <T>();

            FilterActivator <T> .InstantiateFilters(pipelineSettings.Filters, filterChain);

            return(new PipelineManager <T>(filterChain)
            {
                Processor = processor
            });
        }
 public PipelineManager(FilterChain <T> filters)
 {
     _filters = filters;
 }
 public PipelineManager()
 {
     _filters = new FilterChain <T>();
 }