Table of Contents

Interface IDbContextFactoryMonitoring

Namespace
FishMMO.Database.Npgsql
Assembly
FishMMO-DB.dll

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

int

PerformanceTracker

Gets the query performance tracker for operation-level monitoring.

QueryPerformanceTracker PerformanceTracker { get; }

Property Value

QueryPerformanceTracker

PoolMetrics

Gets the connection pool metrics for monitoring and diagnostics.

ConnectionPoolMetrics PoolMetrics { get; }

Property Value

ConnectionPoolMetrics

RetryPolicy

Gets the retry policy configuration for transient failure handling.

RetryPolicyConfiguration RetryPolicy { get; }

Property Value

RetryPolicyConfiguration