Search Results for

    Show / Hide Table of Contents

    Class TrashTargetFactory

    Factory methods that create a TrashTarget<TInput> dataflow worker, which consumes and discards all incoming rows.

    The Input port is linked to (if available) the upstream output or error output port specified by the factory.

    Get the factory from Link when the upstream port is known ahead of time (which is usually the case). Otherwise get it from GetDownstreamFactory<TInput>(), and link the transform or target explicitly using LinkTo(InputPort<TOutput>) or LinkFrom(OutputPortBase<TInput>).

    Inheritance
    Object
    TrashTargetFactory
    Namespace: actionETL
    Assembly: actionETL.dll
    Syntax
    public static class TrashTargetFactory

    Methods

    TrashTarget<TInput>(in DownstreamFactory<TInput>)

    Initializes a new instance of the TrashTarget<TInput> dataflow worker, which consumes and discards all incoming rows.

    The Input port is linked to (if available) the upstream output or error output port specified by the factory.

    The target will get a name derived from the upstream worker and port: "TrashTarget(UpstreamWorkerName[OutputPortName])".

    Declaration
    public static TrashTarget<TInput> TrashTarget<TInput>(this in DownstreamFactory<TInput> downstreamFactory)
        where TInput : class
    Parameters
    Type Name Description
    DownstreamFactory<TInput> downstreamFactory

    The downstream factory, which specifies the parent worker and (optionally) the upstream port to link the "first" input port of this dataflow worker to.

    Get it from Link when the upstream port is known ahead of time (which is usually the case). Otherwise get it from GetDownstreamFactory<TInput>(), and link the transform or target explicitly using LinkTo(InputPort<TOutput>) or LinkFrom(OutputPortBase<TInput>).

    Returns
    Type Description
    TrashTarget<TInput>

    The newly created and linked worker.

    Type Parameters
    Name Description
    TInput

    The type of the input rows.

    Exceptions
    Type Condition
    ArgumentException

    UpstreamPort must be set with this overload.

    ArgumentException

    workerName:

    • Workers with the same parent must have unique names.
    • Worker and worker system names cannot contain '/' or start with double underscore '__'.
    ArgumentNullException

    workerParent - All workers must have a parent. The top level workers have the worker system as parent.

    InvalidOperationException
    • Cannot add child worker to parent which has completed. Are you adding it to the correct parent?
    • Cannot add worker to parent, since its children have been started. Are you adding it to the correct parent?

    TrashTarget<TInput>(in DownstreamFactory<TInput>, String)

    Initializes a new instance of the TrashTarget<TInput> dataflow worker, which consumes and discards all incoming rows.

    The Input port is linked to (if available) the upstream output or error output port specified by the factory.

    Declaration
    public static TrashTarget<TInput> TrashTarget<TInput>(this in DownstreamFactory<TInput> downstreamFactory, string workerName)
        where TInput : class
    Parameters
    Type Name Description
    DownstreamFactory<TInput> downstreamFactory

    The downstream factory, which specifies the parent worker and (optionally) the upstream port to link the "first" input port of this dataflow worker to.

    Get it from Link when the upstream port is known ahead of time (which is usually the case). Otherwise get it from GetDownstreamFactory<TInput>(), and link the transform or target explicitly using LinkTo(InputPort<TOutput>) or LinkFrom(OutputPortBase<TInput>).

    String workerName

    Name of the worker.

    Set to a prefix plus a trailing "/" (e.g. "MyPrefix-/") to generate a unique name from the prefix plus an increasing number starting at 1.

    While less useful, set to null, whitespace or "/" to generate a unique name from the worker type plus an increasing number starting at 1.

    The name cannot otherwise contain "/", and cannot start with double underscore "__".

    Returns
    Type Description
    TrashTarget<TInput>

    The newly created and (optionally) linked worker.

    Type Parameters
    Name Description
    TInput

    The type of the input rows.

    Exceptions
    Type Condition
    ArgumentException

    workerName:

    • Workers with the same parent must have unique names.
    • Worker and worker system names cannot contain '/' or start with double underscore '__'.
    ArgumentNullException

    workerParent - All workers must have a parent. The top level workers have the worker system as parent.

    InvalidOperationException
    • Cannot add child worker to parent which has completed. Are you adding it to the correct parent?
    • Cannot add worker to parent, since its children have been started. Are you adding it to the correct parent?

    See Also

    TrashTarget<TInput>
    In This Article
    Back to top Copyright © 2023 Envobi Ltd