Пример #1
0
            public void Dispose()
            {
                if (_n != null)
                {
                    _death = true;

                    _th.Join();
                    _th = null;

                    _n.Dispose();
                    _n = null;
                }
            }
Пример #2
0
            public void Dispose()
            {
                if (_n != null)
                {
                    _death = true;
                    _evDoSend.set();

                    _th.Join();
                    _th = null;

                    _n.Dispose();
                    _n = null;

                    _evDoSend.Dispose();
                    _evDoSend = null;
                }
            }