Example #1
0
        private void AskUserForConfirmation()
        {
            //Console.Clear();

            var outputColumns = _jobState.GetOutputColumns();
            var inputSets     = _jobState.GetinputSets();

            _log.LogInformation("A file with name {filename} will be created in Directoy {targetDirectory}.\n", _jobState.GetOutputsetName(), _jobState.GetOutputDirectory());

            foreach (var set in inputSets)
            {
                _log.LogInformation("Input set {inputsetName} will map to {targetDirectory} by rules of...\n", set.DatasetName, _jobState.GetOutputsetName());

                foreach (var rule in set.MapRules)
                {
                    _log.LogInformation("Input set Name [{inputSetName}] Column {columnName} --> Output set Name [{outputsetName}] Column {outColumnName}", set.DatasetName, set.Columns[rule.OriginIndex], _jobState.GetOutputsetName(), outputColumns[rule.TargetIndex]);
                }
            }

            _log.LogInformation("Confirm? [Y/N]");

            var confirm = Console.ReadLine().ToUpper();
        }