Class ValidationResult

Namespace
Wolfgang.Etl.FixedWidth
Assembly
Wolfgang.Etl.FixedWidth.dll

The result returned by a RecordValidator delegate: the ValidationAction to take for a parsed record and an optional human-readable reason (surfaced in debug logs).

public sealed class ValidationResult
Inheritance
ValidationResult
Inherited Members

Properties

Action

The action the extractor should take for the record.

public ValidationAction Action { get; }

Property Value

ValidationAction

Reason

An optional reason describing why the record was skipped or extraction was stopped. null when not supplied.

public string? Reason { get; }

Property Value

string

Methods

Accept()

Accept the record and yield it.

public static ValidationResult Accept()

Returns

ValidationResult

Skip(string?)

Skip the record, optionally recording reason in the debug log.

public static ValidationResult Skip(string? reason = null)

Parameters

reason string

An optional reason the record was skipped.

Returns

ValidationResult

Stop(string?)

Stop extraction, optionally recording reason in the debug log.

public static ValidationResult Stop(string? reason = null)

Parameters

reason string

An optional reason extraction was stopped.

Returns

ValidationResult