Esempio n. 1
0
        public void Dispose()
        {
            if (_mDisposed == false)
            {
                _mDisposed = true;

                s_Current = m_Previous;

                Thread.EndThreadAffinity();
            }
        }
Esempio n. 2
0
        public ErrorSection()
        {
            if (Context.Current != null)
            {
                m_ErrorStartIndex = Context.Current.Errors.Count;
            }

            Thread.BeginThreadAffinity();

            m_Previous = s_Current;
            s_Current  = this;
        }