Interface IProgressTimer

Namespace
Wolfgang.Etl.Abstractions
Assembly
Wolfgang.Etl.Abstractions.dll

Represents a timer that raises Elapsed at a regular interval, used by extractor, transformer, and loader base classes to drive progress callbacks.

public interface IProgressTimer : IDisposable
Inherited Members

Remarks

The default production implementation typically uses Timer internally. In unit tests, a custom implementation can be injected to fire the Elapsed event on demand, making progress callback assertions deterministic.

Methods

Start(int)

Starts the timer with the specified interval in milliseconds.

void Start(int intervalMilliseconds)

Parameters

intervalMilliseconds int

The number of milliseconds between Elapsed events.

StopTimer()

Stops the timer. No further Elapsed events will be raised until Start(int) is called again.

void StopTimer()

Events

Elapsed

Raised at each timer interval. Subscribers receive progress notifications and should call CreateProgressReport() then Report().

event Action? Elapsed

Event Type

Action