Table of Contents

Interface IPerformanceMonitoredFoundry

Namespace
WorkflowForge.Extensions.Observability.Performance
Assembly
WorkflowForge.Extensions.Observability.Performance.dll

Interface for foundries that support performance monitoring. Implementations should extend this interface when WorkflowForge.Extensions.Observability.Performance is available.

public interface IPerformanceMonitoredFoundry

Properties

IsPerformanceMonitoringEnabled

Gets a value indicating whether performance monitoring is currently enabled.

bool IsPerformanceMonitoringEnabled { get; }

Property Value

bool

Methods

DisablePerformanceMonitoring()

Disables performance monitoring for this foundry.

bool DisablePerformanceMonitoring()

Returns

bool

True if monitoring was disabled; otherwise, false.

EnablePerformanceMonitoring()

Enables performance monitoring for this foundry.

bool EnablePerformanceMonitoring()

Returns

bool

True if monitoring was enabled; otherwise, false.

GetPerformanceStatistics()

Gets the performance statistics for this foundry.

IFoundryPerformanceStatistics? GetPerformanceStatistics()

Returns

IFoundryPerformanceStatistics

Performance statistics or null if monitoring is disabled.