private void OnConnectionAttemptFailed(object sender, PeerConnectionFailedEventArgs e) { Log.LogInfo("[Peer] Connection attempt failed to {0} with reason: {1}", endPoint, e.FailedReason); ConnectionFailed.SafeInvoke(this, e); }
/// <summary> /// The connection attempt to this peer has failed. /// </summary> /// <param name="failedReason">The reason of failure.</param> protected virtual void OnConnectionFailed(ConnectionFailedReason failedReason) { var eventArgs = new PeerConnectionFailedEventArgs(failedReason); ConnectionFailed.SafeInvoke(this, eventArgs); }