Пример #1
0
 public void OnConnectionCloseBefore(SqlConnection connection)
 {
     SqlConnectionCount
     .WithLabels(connection.DataSource, connection.Database)
     .Dec();
 }
Пример #2
0
 public void OnConnectionOpenAfter(SqlConnection connection)
 {
     SqlConnectionCount
     .WithLabels(connection.DataSource, connection.Database)
     .Inc();
 }