public void Dispose() { if (!this.isStopped) { this.transport.StopListening(); } this.transport.Dispose(); }