예제 #1
0
        private EtlPipeline(EtlPipelineSettings settings, EtlPipelineContext context)
        {
            Context = context;
            Name    = settings.Name;

            _log              = context.GetLogger(LoggerName);
            _steps            = new List <IEtlOperation>();
            _executionResults = new Dictionary <IEtlOperation, IEtlOperationResult>();

            _settings = settings;
        }
예제 #2
0
        public static IEtlPipeline Create(Action <EtlPipelineSettings> settings)
        {
            var s = new EtlPipelineSettings();

            settings(s);

            var config = new EtlPipelineConfig();

            s.ConfigInitializer(config);

            var context = s.ExistingContext ?? new EtlPipelineContext(config);

            s.ContextInitializer(context);

            return(new EtlPipeline(s, context));
        }