Example #1
0
        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);
        }
Example #2
0
        /// <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);
        }