Interface IDataFlowStreamDestination

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

Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
    public interface IDataFlowStreamDestination

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
System.Func<System.String, System.IO.StreamWriter>

Encoding

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

Declaration
    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
    HttpClient HttpClient { get; set; }
Property Value
TypeDescription
System.Net.Http.HttpClient

HttpRequestMessage

The System.Net.Http.HttpRequestMessage use for the request from the HttpClient. You can use the to add additional meta data or to change the request type (default is POST).

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

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

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
System.String