Class DataFlowStreamDestination<TInput>

The base implementation for a destination that allows writing of data in a stream.

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
Assembly: ETLBox.dll
Syntax
    public abstract class DataFlowStreamDestination<TInput> : DataFlowDestination<TInput>, ILoggableTask, IDataFlowLogging, IDataFlowStreamDestination<TInput>, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent, IDataFlowStreamDestination
Type Parameters
NameDescription
TInput

Type of ingoing data

Properties

Encoding

Encoding used to write data into the source file or web request. Default is UTF8.

Declaration
    public Encoding Encoding { get; set; }
Property Value
TypeDescription
System.Text.Encoding

HttpClient

The System.Net.HttpClient used to connect with the destination (only needed when the ResourceType is Http.

Declaration
    public HttpClient HttpClient { get; set; }
Property Value
TypeDescription
System.Net.Http.HttpClient

ResourceType

Specifies the resourc type. ResourceType. Specify ResourceType.File if you want to write into a file.

Declaration
    public ResourceType ResourceType { get; set; }
Property Value
TypeDescription
ResourceType

StreamWriter

Declaration
    protected StreamWriter StreamWriter { get; set; }
Property Value
TypeDescription
System.IO.StreamWriter

Uri

The Url of the webservice (e.g. https://test.com/foo) or the file name (relative or absolute)

Declaration
    public string Uri { get; set; }
Property Value
TypeDescription
System.String

Methods

CheckParameter()

Declaration
    protected override void CheckParameter()
Overrides

CleanUpOnFaulted(Exception)

Declaration
    protected override void CleanUpOnFaulted(Exception e)
Parameters
TypeNameDescription
System.Exceptione
Overrides

CleanUpOnSuccess()

Declaration
    protected override void CleanUpOnSuccess()
Overrides

CloseStream()

Declaration
    protected abstract void CloseStream()

InitComponent()

Declaration
    protected override void InitComponent()
Overrides

InitStream()

Declaration
    protected abstract void InitStream()

WriteData(TInput)

Declaration
    protected void WriteData(TInput data)
Parameters
TypeNameDescription
TInputdata

WriteIntoStream(TInput)

Declaration
    protected abstract void WriteIntoStream(TInput data)
Parameters
TypeNameDescription
TInputdata

Implements