예제 #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();
 }