public void Execute(TransformPackage package, IDictionary <string, string> namedParameters = null)
        {
            if (namedParameters != null)
            {
                package.Input.RepalceWithNamedParameters(namedParameters);

                package.Output.RepalceWithNamedParameters(namedParameters);
            }

            var input = _dataFactory.CreateDataInput(package.Input);

            var output = _dataFactory.CreateDataOutput(package.Output);

            var pipeline = new DataRowPipeline();

            pipeline.Actions = package.Actions;

            input.Output = pipeline.Input;

            pipeline.Output = output.Input;

            pipeline.Link();

            input.Start();
        }
        public void Execute(TransformPackage package, IDictionary<string, string> namedParameters = null)
        {
            if(namedParameters != null)
            {
                package.Input.RepalceWithNamedParameters(namedParameters);

                package.Output.RepalceWithNamedParameters(namedParameters);
            }

            var input = _dataFactory.CreateDataInput(package.Input);

            var output = _dataFactory.CreateDataOutput(package.Output);

            var pipeline = new DataRowPipeline();

            pipeline.Actions = package.Actions;

            input.Output = pipeline.Input;

            pipeline.Output = output.Input;

            pipeline.Link();

            input.Start();
        }
Example #3
0
        public TransformPackage Build()
        {
            var input = _dataStore.GetDataInput(_inputName);

            var output = _dataStore.GetDataOutput(_outputName);

            var package = new TransformPackage
            {
                Input = input,
                Output = output,
                Actions = _actions
            };

            return package;
        }
Example #4
0
        public TransformPackage Build()
        {
            var input = _dataStore.GetDataInput(_inputName);

            var output = _dataStore.GetDataOutput(_outputName);

            var package = new TransformPackage
            {
                Input   = input,
                Output  = output,
                Actions = _actions
            };

            return(package);
        }