protected virtual void OnConnectionAttemptFailed() { // DEBUG: Log failed connection attempt. var maxAttemptsMsg = (MAX_CONNECTION_ATTEMPTS > 0) ? $"/{MAX_CONNECTION_ATTEMPTS}" : ""; Log.Debug($"Connection attempt({ConnectionAttempts}{maxAttemptsMsg}) to ('{_address}:{_port}') failed."); ConnectionAttemptFailed?.Invoke(this, new EventArgs()); }
/// <summary> /// Raise the connection attempt failed event /// </summary> /// <param name="args"></param> internal void RaiseConnectionAttemptFailed(ConnectionAttemptFailedEventArgs args) => ConnectionAttemptFailed?.InvokeAsync(this, args);
void IReceive <ConnectionAttemptFailed> .Receive(ConnectionAttemptFailed message) { log.Debug("Bus interrupted"); Interrupted(); }