Ejemplo n.º 1
0
 public void OnConnectionCloseBefore(SqlConnection connection)
 {
     SqlConnectionCount
     .WithLabels(connection.DataSource, connection.Database)
     .Dec();
 }
Ejemplo n.º 2
0
 public void OnConnectionOpenAfter(SqlConnection connection)
 {
     SqlConnectionCount
     .WithLabels(connection.DataSource, connection.Database)
     .Inc();
 }