IDataFlowStreamDestination

Interface IDataFlowStreamDestination

Implemented by data flow destinations that allow writing data in a stream

Namespace: ETLBox
Assembly: ETLBox.dll
Syntax
    public interface IDataFlowStreamDestination : IDataFlowDestination, IDataFlowComponent, ILoggableTask

Properties

AzureBlobStorage

Use this to pass your AzureBlobStorage connection information. There are different methods to connect with Azure Blob Storage: Option 1: provide an existing BlockBlobClient Option 2: create BlockBlobClient based on the Uri and optional credential tokens - the Uri needs to be the blob url Option 3: create BlobkBlobClient with provided ConnectionString and ContainerName, the Uri is then the name of the blob

Declaration
    AzureBlobStorageConfiguration AzureBlobStorage { get; set; }
Property Value
TypeDescription
AzureBlobStorageConfiguration

CreateStreamWriter

By default, stream are created internally based on Uri & ResourceType. If you already have an existing stream, use this function to returns a new StreamWriter based on this stream.

Declaration
    Func<string, StreamWriter> CreateStreamWriter { get; set; }
Property Value
TypeDescription
Func<string, StreamWriter>

Encoding

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

Declaration
    Encoding Encoding { get; set; }
Property Value
TypeDescription
Encoding

HttpClient

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

Declaration
    HttpClient HttpClient { get; set; }
Property Value
TypeDescription
HttpClient

HttpContentType

The content type used when sending the http request content.

Declaration
    string HttpContentType { get; set; }
Property Value
TypeDescription
string

HttpRequestMessage

The System.Net.Http.HttpRequestMessage used for the request in the HttpClient. Use this property to add additional header data type or to change the http method (e.g. for POST requests).

Declaration
    HttpRequestMessage HttpRequestMessage { get; set; }
Property Value
TypeDescription
HttpRequestMessage

HttpResponseMessage

The System.Net.HttpResponseMessage returned from the current request. The response message is avaiable after all data rows were sent to the destination.

Declaration
    HttpResponseMessage HttpResponseMessage { get; }
Property Value
TypeDescription
HttpResponseMessage

ResourceType

Specifies the resource type. Use ResourceType.File if you want to write into a file (default) Use ResourceType.Http to write into a web endpoint.

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

StreamWriter

The stream writer used for the current request.

Declaration
    StreamWriter StreamWriter { get; }
Property Value
TypeDescription
StreamWriter

Uri

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

Declaration
    string Uri { get; set; }
Property Value
TypeDescription
string