Interface IDbContextFactoryMonitoring
Optional monitoring interface for database context factories. Provides access to connection pool metrics and query performance tracking.
public interface IDbContextFactoryMonitoring
Remarks
This interface follows the Interface Segregation Principle by separating monitoring concerns from core factory functionality. Consumers that don't need monitoring can depend on IDbContextFactory instead.
Properties
MaxPoolSize
Gets the configured maximum pool size.
int MaxPoolSize { get; }
Property Value
PerformanceTracker
Gets the query performance tracker for operation-level monitoring.
QueryPerformanceTracker PerformanceTracker { get; }
Property Value
PoolMetrics
Gets the connection pool metrics for monitoring and diagnostics.
ConnectionPoolMetrics PoolMetrics { get; }
Property Value
RetryPolicy
Gets the retry policy configuration for transient failure handling.
RetryPolicyConfiguration RetryPolicy { get; }