<PackageReference Include="OpenTelemetry" Version="1.15.2" />

OpenTelemetry.Internal.PeriodicExportingMetricReaderWorker

Abstract base class for periodic exporting metric reader workers that handle the threading and synchronization logic.
protected int ExportIntervalMilliseconds { get; }

Gets he interval in milliseconds between two consecutive exports.

protected int ExportTimeoutMilliseconds { get; }

Gets how long the export can run before it is cancelled.

Gets the metric reader instance.

protected PeriodicExportingMetricReaderWorker(BaseExportingMetricReader metricReader, int exportIntervalMilliseconds, int exportTimeoutMilliseconds)

Initializes a new instance of the PeriodicExportingMetricReaderWorker class.

public void Dispose()

Disposes of the worker and its resources.

protected virtual void Dispose(bool disposing)

Releases the unmanaged resources used by this class and optionally releases the managed resources.

public abstract bool Shutdown(int timeoutMilliseconds)

Initiates shutdown and waits for completion.

public abstract void Start()

Starts the worker.

public abstract bool TriggerExport()

Triggers an export operation.