Exemplo n.º 1
0
        public void Dispose()
        {
            if (pythonConsole != null)
            {
                pythonConsole.Dispose();
            }

            if (thread != null)
            {
                thread.Join();
            }
        }
Exemplo n.º 2
0
        public void Dispose()
        {
            if (_pythonConsole != null)
            {
                _pythonConsole.Dispose();
                _pythonConsole = null;
            }

            if (_thread != null)
            {
                _thread.Join();
                _thread = null;
            }
        }