Class CsvDestination<TInput>

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

Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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()
Examples
CsvDestination<MyRow> dest = new CsvDestination<MyRow>("/path/to/file.csv");
dest.Wait(); //Wait for all data to arrive

CsvDestination(string, ResourceType)

Declaration
    public CsvDestination(string uri, ResourceType resourceType)
Parameters
TypeNameDescription
stringuri

The destination csv file name or uri

ResourceTyperesourceType

Specifies if data is loaded from a file, a web endpoint or other storage types (e.g. Azure Blob Storage)

CsvDestination(string)

Declaration
    public CsvDestination(string uri)
Parameters
TypeNameDescription
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<T><CsvContext>

HttpContentType

The content type used when sending the http request content.

Declaration
    public override string HttpContentType { get; set; }
Property Value
TypeDescription
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
string
Overrides

Methods

CheckParameter()

Declaration
    protected override void CheckParameter()
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.CheckParameter()
Examples
CsvDestination<MyRow> dest = new CsvDestination<MyRow>("/path/to/file.csv");
dest.Wait(); //Wait for all data to arrive

CloseStream()

Declaration
    protected override void CloseStream()
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.CloseStream()
Examples
CsvDestination<MyRow> dest = new CsvDestination<MyRow>("/path/to/file.csv");
dest.Wait(); //Wait for all data to arrive

InitStream()

Declaration
    protected override void InitStream()
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.InitStream()
Examples
CsvDestination<MyRow> dest = new CsvDestination<MyRow>("/path/to/file.csv");
dest.Wait(); //Wait for all data to arrive

WriteIntoStream(TInput)

Declaration
    protected override void WriteIntoStream(TInput data)
Parameters
TypeNameDescription
TInputdata
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.WriteIntoStream(TInput)
Examples
CsvDestination<MyRow> dest = new CsvDestination<MyRow>("/path/to/file.csv");
dest.Wait(); //Wait for all data to arrive

Implements