void IDisposable.Dispose() { threadData.Pop(this._prevEnv, this._prevRC); if (this._prevRC == 0) { threadData = null; } }
protected AmbientEnvironment(object env) { if (threadData == null) { threadData = new EnvWrapper(); } threadData.Push(env, out this._prevEnv, out this._prevRC); }
void IDisposable.Dispose() { threadData.Pop(this._prevEnv, this._prevRC); if (this._prevRC == 0) { threadData = null; } }
protected AmbientEnvironment(object env) { if (threadData == null) { threadData = new EnvWrapper(); } threadData.Push(env, out this._prevEnv, out this._prevRC); }
void IDisposable.Dispose() { Debug.Assert(null != threadData); threadData.Pop(_prevEnv, _prevRC); if (_prevRC == 0) { threadData = null; } }
void IDisposable.Dispose() { Debug.Assert(null != threadData); threadData.Pop(_prevEnv, _prevRC); if (_prevRC == 0) { threadData = null; } }
protected AmbientEnvironment(object env) { if (threadData == null) { //Setting TLS for the first time threadData = new EnvWrapper(); } threadData.Push(env, out _prevEnv, out _prevRC); }
protected AmbientEnvironment(object env) { if (threadData == null) { //Setting TLS for the first time threadData = new EnvWrapper(); } threadData.Push(env, out _prevEnv, out _prevRC); }