private void OnBannedConnection(BannedConnectionEventArgs e) { var handler = BannedConnection; if (handler != null) handler(this, e); }
private void OnBannedConnection(object sender, BannedConnectionEventArgs e) { _logger.Information("Rejected connection from banned ip: {0:l}", e.Endpoint.Address.ToString()); }