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