Пример #1
0
        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());
        }
Пример #2
0
 /// <summary>
 /// Raise the connection attempt failed event
 /// </summary>
 /// <param name="args"></param>
 internal void RaiseConnectionAttemptFailed(ConnectionAttemptFailedEventArgs args)
 => ConnectionAttemptFailed?.InvokeAsync(this, args);
Пример #3
0
 void IReceive <ConnectionAttemptFailed> .Receive(ConnectionAttemptFailed message)
 {
     log.Debug("Bus interrupted");
     Interrupted();
 }