Beispiel #1
0
        internal void RestoreExecutionContext(ref ExecutionContext.Switcher switcher)
        {
            if (switcher.IsEmpty)
            {
                _ec = null;
                return;
            }

            switcher.Restore(_ec);
        }
Beispiel #2
0
 internal void BranchExecutionContext(out ExecutionContext.Switcher switcher)
 {
     if (_ec == null)
     {
         switcher = new ExecutionContext.Switcher();
     }
     else
     {
         switcher        = new ExecutionContext.Switcher(_ec);
         _ec.CopyOnWrite = true;
     }
 }
Beispiel #3
0
		internal void BranchExecutionContext (out ExecutionContext.Switcher switcher)
		{
			if (_ec == null) {
				switcher =  new ExecutionContext.Switcher ();
			} else {
				switcher = new ExecutionContext.Switcher (_ec);
				_ec.CopyOnWrite = true;
			}
		}