private void Handle(ConnectionPoolCheckedOutConnectionEvent @event) { Debug(TraceSourceEventHelper.ConnectionPoolIdBase + 9, "{0}-pool: checked out connection {1} in {2}ms.", TraceSourceEventHelper.Label(@event.ConnectionId.ServerId), TraceSourceEventHelper.Format(@event.ConnectionId), @event.Duration.TotalMilliseconds); }
private void Handle(ConnectionPoolRemovingConnectionEvent @event) { Debug(TraceSourceEventHelper.ConnectionPoolIdBase + 6, "{0}-pool: removing connection {1}.", TraceSourceEventHelper.Label(@event.ConnectionId.ServerId), TraceSourceEventHelper.Format(@event.ConnectionId)); }
private void Handle(ConnectionPoolCheckingOutConnectionEvent @event) { Debug(TraceSourceEventHelper.ConnectionPoolIdBase + 8, "{0}-pool: checking out a connection.", TraceSourceEventHelper.Label(@event.ServerId)); }
private void Handle(ConnectionPoolClosedEvent @event) { Debug(TraceSourceEventHelper.ConnectionPoolIdBase + 3, "{0}-pool: closed.", TraceSourceEventHelper.Label(@event.ServerId)); }
private void Handle(ConnectionPoolAddingConnectionEvent @event) { Debug(TraceSourceEventHelper.ConnectionPoolIdBase + 4, "{0}-pool: adding connection.", TraceSourceEventHelper.Label(@event.ServerId)); }
private void Handle(ServerDescriptionChangedEvent @event) { Debug(TraceSourceEventHelper.ServerIdBase + 7, "{0}: {1}", TraceSourceEventHelper.Label(@event.OldDescription.ServerId), @event.NewDescription); }
// Connection Pools private void Handle(ConnectionPoolOpeningEvent @event) { Debug(TraceSourceEventHelper.ConnectionPoolIdBase, "{0}-pool: opening.", TraceSourceEventHelper.Label(@event.ServerId)); }
private void Handle(ServerHeartbeatFailedEvent @event) { Error(TraceSourceEventHelper.ServerIdBase + 6, @event.Exception, "{0}: error sending heartbeat.", TraceSourceEventHelper.Label(@event.ConnectionId)); }
private void Handle(ServerHeartbeatSucceededEvent @event) { Debug(TraceSourceEventHelper.ServerIdBase + 5, "{0}: sent heartbeat in {1}ms.", TraceSourceEventHelper.Label(@event.ConnectionId), @event.Duration.TotalMilliseconds); }
private void Handle(ServerHeartbeatStartedEvent @event) { Debug(TraceSourceEventHelper.ServerIdBase + 4, "{0}: sending heartbeat.", TraceSourceEventHelper.Label(@event.ConnectionId)); }
private void Handle(ServerClosedEvent @event) { Info(TraceSourceEventHelper.ServerIdBase + 3, "{0}: closed in {1}ms.", TraceSourceEventHelper.Label(@event.ServerId), @event.Duration.TotalMilliseconds); }
private void Handle(ServerClosingEvent @event) { Debug(TraceSourceEventHelper.ServerIdBase + 2, "{0}: closing.", TraceSourceEventHelper.Label(@event.ServerId)); }