Class CsvDestination<TInput>

A Csv destination defines a csv file where data from the flow is inserted.

Inheritance
System.Object
CsvDestination<TInput>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ETLBox.DataFlow.Connectors
Assembly: ETLBox.Csv.dll
Syntax
    public class CsvDestination<TInput> : DataFlowStreamDestination<TInput>, ILoggableTask, IDataFlowLogging, IDataFlowStreamDestination<TInput>, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent, IDataFlowStreamDestination
Type Parameters
NameDescription
TInput

Type of ingoing data

Examples
CsvDestination<MyRow> dest = new CsvDestination<MyRow>("/path/to/file.csv");
dest.Wait(); //Wait for all data to arrive

Constructors

CsvDestination()

Declaration
    public CsvDestination()

CsvDestination(String)

Declaration
    public CsvDestination(string uri)
Parameters
TypeNameDescription
System.Stringuri

The destination csv file name or uri

Properties

Configuration

The CsvHelper Configuration. E.g. you can change the delimiter or the escape character here.

Declaration
    public CsvConfiguration Configuration { get; set; }
Property Value
TypeDescription
CsvHelper.Configuration.CsvConfiguration

CsvContext

Gives you access to the CsvHelper CsvContext. You can modify the context before data is written.

Declaration
    public Action<CsvContext> CsvContext { get; set; }
Property Value
TypeDescription
System.Action<CsvHelper.CsvContext>

HttpContentType

The content type used when sending the http request content.

Declaration
    public override string HttpContentType { get; set; }
Property Value
TypeDescription
System.String
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.HttpContentType

TaskName

A name to identify the task or component. Every component or task comes with a default name that can be overwritten.

Declaration
    public override string TaskName { get; set; }
Property Value
TypeDescription
System.String
Overrides

Methods

CheckParameter()

Declaration
    protected override void CheckParameter()
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.CheckParameter()

CloseStream()

Declaration
    protected override void CloseStream()
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.CloseStream()

InitStream()

Declaration
    protected override void InitStream()
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.InitStream()

WriteIntoStream(TInput)

Declaration
    protected override void WriteIntoStream(TInput data)
Parameters
TypeNameDescription
TInputdata
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.WriteIntoStream(TInput)

Implements