/// <summary> /// Accepts a pending connection request and returns underlying network transport /// </summary> public ITransport Accept() { // check object state if (_disposed) { throw new ObjectDisposedException(GetType().FullName); } if (_transport == null) { throw new InvalidOperationException("Listener was stopped"); } return(_transport.Accept()); }
private void Accept(object state) { lock (_result) { try { _acceptedConnection = _transport.Accept(); } catch (Exception ex) { _transportException = ex; } End(); } }
public ITransport Accept() { return(GetWrapper(_transport.Accept())); }