Beispiel #1
0
        /// <inheritdoc cref="BaseFileImporter"/>
        protected override IColumnsAggregatorAdapter CreateColumnsAggregator()
        {
            var columnsProcessor = new NonPersistentColumnsAggregatorAdapter(UserConnection);

            columnsProcessor.ProcessError += HandleColumnProcessError;
            return(columnsProcessor);
        }
Beispiel #2
0
        /// <inheritdoc cref="IColumnsAggregatorFactory"/>
        public IColumnsAggregatorAdapter GetColumnsAggregator(UserConnection userConnection)
        {
            IColumnsAggregatorAdapter _columnsProcessor;

            if (userConnection.GetIsFeatureEnabled("UsePersistentFileImport"))
            {
                _columnsProcessor = new PersistentColumnsAggregatorAdapter(userConnection);
            }
            else
            {
                _columnsProcessor = new NonPersistentColumnsAggregatorAdapter(userConnection);
            }
            return(_columnsProcessor);
        }