Esempio n. 1
0
        public PipelineOutput(IPipelineIn inputModule)
        {
            SimpleLog.ToLog(this.GetType().FullName + "." + System.Reflection.MethodBase.GetCurrentMethod().Name, SimpleLogEventType.Trace);


            if (inputModule == null)
                throw new System.ArgumentNullException("inputModule");

            _inputModule = inputModule;
        }
Esempio n. 2
0
        public PipelineOutput(IPipelineIn inputModule)
        {
            SimpleLog.ToLog(this.GetType().FullName + "." + System.Reflection.MethodBase.GetCurrentMethod().Name, SimpleLogEventType.Trace);


            if (inputModule == null)
            {
                throw new System.ArgumentNullException("inputModule");
            }

            _inputModule = inputModule;
        }
Esempio n. 3
0
        public FileOutput(IPipelineIn inputModule, string fqTargetFileName)
            : base(inputModule)
        {
            if (string.IsNullOrWhiteSpace(fqTargetFileName))
                throw new ArgumentNullException("fqTargetFileName");

            _fqTargetFile = fqTargetFileName;
            string targetFileFolder = Path.GetDirectoryName(_fqTargetFile);
            _fqTempFile = System.IO.Path.Combine(targetFileFolder, Path.GetRandomFileName());

            _outputStream = new System.IO.FileStream(_fqTempFile, FileMode.Create, FileAccess.Write, FileShare.None, _bufferSize);
        }
Esempio n. 4
0
        public FileOutput(IPipelineIn inputModule, string fqTargetFileName)
            : base(inputModule)
        {
            if (string.IsNullOrWhiteSpace(fqTargetFileName))
            {
                throw new ArgumentNullException("fqTargetFileName");
            }

            _fqTargetFile = fqTargetFileName;
            string targetFileFolder = Path.GetDirectoryName(_fqTargetFile);

            _fqTempFile = System.IO.Path.Combine(targetFileFolder, Path.GetRandomFileName());

            _outputStream = new System.IO.FileStream(_fqTempFile, FileMode.Create, FileAccess.Write, FileShare.None, _bufferSize);
        }
Esempio n. 5
0
        public FileCsvOutput(
             IPipelineIn inputModule
            ,string fqOutputPath
            ,string delimiter
            ,string textQualifier
            )
            : base(inputModule, fqOutputPath)
        {
            SimpleLog.ToLog(this.GetType().FullName + "." + System.Reflection.MethodBase.GetCurrentMethod().Name, SimpleLogEventType.Trace);

            if (string.IsNullOrEmpty(delimiter))
                throw new System.ArgumentNullException("delimiter");

            _delimiter = delimiter;
            _textQualifier = textQualifier;
            _textQualifierSubstitute = textQualifier + textQualifier;

            _sw = new StreamWriter(base.OutputStream, _outputEncoding);
        }
Esempio n. 6
0
        public FileCsvOutput(
            IPipelineIn inputModule
            , string fqOutputPath
            , string delimiter
            , string textQualifier
            ) : base(inputModule, fqOutputPath)
        {
            SimpleLog.ToLog(this.GetType().FullName + "." + System.Reflection.MethodBase.GetCurrentMethod().Name, SimpleLogEventType.Trace);

            if (string.IsNullOrEmpty(delimiter))
            {
                throw new System.ArgumentNullException("delimiter");
            }

            _delimiter               = delimiter;
            _textQualifier           = textQualifier;
            _textQualifierSubstitute = textQualifier + textQualifier;

            _sw = new StreamWriter(base.OutputStream, _outputEncoding);
        }