Class WorkflowFoundryPerformanceExtensions
- Namespace
- WorkflowForge.Extensions.Observability.Performance
- Assembly
- WorkflowForge.Extensions.Observability.Performance.dll
Extension methods that add performance monitoring capabilities to WorkflowFoundry. These extensions are available when the WorkflowForge.Extensions.Observability.Performance package is installed.
public static class WorkflowFoundryPerformanceExtensions
- Inheritance
-
WorkflowFoundryPerformanceExtensions
- Inherited Members
Methods
DisablePerformanceMonitoring(IWorkflowFoundry)
Disables performance monitoring for the foundry. This method is available as an extension when WorkflowForge.Extensions.Observability.Performance is installed.
public static bool DisablePerformanceMonitoring(this IWorkflowFoundry foundry)
Parameters
foundryIWorkflowFoundryThe workflow foundry.
Returns
- bool
True if performance monitoring was disabled; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when foundry is null.
EnablePerformanceMonitoring(IWorkflowFoundry)
Enables performance monitoring for the foundry. This method is available as an extension when WorkflowForge.Extensions.Observability.Performance is installed.
public static bool EnablePerformanceMonitoring(this IWorkflowFoundry foundry)
Parameters
foundryIWorkflowFoundryThe workflow foundry.
Returns
- bool
True when monitoring is active for the foundry. Re-enabling starts from a fresh set of counters.
Exceptions
- ArgumentNullException
Thrown when foundry is null.
GetPerformanceStatistics(IWorkflowFoundry)
Gets performance statistics from the foundry.
public static IFoundryPerformanceStatistics? GetPerformanceStatistics(this IWorkflowFoundry foundry)
Parameters
foundryIWorkflowFoundryThe workflow foundry.
Returns
- IFoundryPerformanceStatistics
Performance statistics if available; otherwise, null.