Class JsonDestination<TInput>

A Json destination defines a json file where data from the flow is inserted.

Inheritance
System.Object
JsonDestination<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.Json.dll
Syntax
    public class JsonDestination<TInput> : DataFlowStreamDestination<TInput>, ILoggableTask, IDataFlowLogging, IDataFlowStreamDestination<TInput>, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent, IDataFlowStreamDestination
Type Parameters
NameDescription
TInput

Type of ingoing data.

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

Constructors

JsonDestination()

Declaration
    public JsonDestination()

JsonDestination(String)

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

The source csv file name or uri

JsonDestination(String, ResourceType)

Declaration
    public JsonDestination(string uri, ResourceType resourceType)
Parameters
TypeNameDescription
System.Stringuri

The source csv file name or uri

ResourceTyperesourceType

The type of resource for the uri (e.g. file or http)

Properties

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

JsonSerializer

The Newtonsoft.Json.JsonSerializer used to deserialize the json into the used data type.

Declaration
    public JsonSerializer JsonSerializer { get; set; }
Property Value
TypeDescription
Newtonsoft.Json.JsonSerializer

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