FinishConnectByNameSyncFailure() private méthode

private FinishConnectByNameSyncFailure ( Exception exception, int bytesTransferred, SocketFlags flags ) : void
exception Exception
bytesTransferred int
flags SocketFlags
Résultat void
Exemple #1
0
        private void SyncFail(Exception e)
        {
            OnFail(false);

            if (_internalArgs != null)
            {
                _internalArgs.Dispose();
            }

            SocketException socketException = e as SocketException;
            if (socketException != null)
            {
                _userArgs.FinishConnectByNameSyncFailure(socketException, 0, SocketFlags.None);
            }
            else
            {
                ExceptionDispatchInfo.Throw(e);
            }
        }
        private void SyncFail(Exception e)
        {
            OnFail(false);
            if (internalArgs != null)
            {
                internalArgs.Dispose();
            }

            SocketException socketException = e as SocketException;

            if (socketException != null)
            {
                userArgs.FinishConnectByNameSyncFailure(socketException, 0, SocketFlags.None);
            }
            else
            {
                throw e;
            }
        }