39 references to Nesting
System (39)
net\System\Net\_ConnectStream.cs (39)
621Interlocked.CompareExchange(ref m_CallNesting, Nesting.InternalIO, Nesting.Idle); 693Interlocked.CompareExchange(ref m_CallNesting, Nesting.Idle, Nesting.InternalIO); 921int nesting = Interlocked.CompareExchange(ref m_CallNesting, Nesting.IoInProgress, Nesting.Idle); 923if (nesting != Nesting.Idle && nesting != Nesting.Closed) 1024nesting = Nesting.InError; 1127nesting = Nesting.InError; 1159if (!async || nesting == Nesting.InError || completeSync) 1161nesting = Interlocked.CompareExchange(ref m_CallNesting, (nesting == Nesting.InError? Nesting.InError: Nesting.Idle), Nesting.IoInProgress); 1163if (nesting == Nesting.Closed) 1260if (Nesting.Closed == ExchangeCallNesting((userException == null? Nesting.Idle: Nesting.InError), Nesting.IoInProgress)) 1408int nesting = Interlocked.CompareExchange(ref m_CallNesting, Nesting.IoInProgress, Nesting.Idle); 1411if (nesting != Nesting.Idle) 1437Interlocked.CompareExchange(ref m_CallNesting, Nesting.Idle, Nesting.IoInProgress); 1679int nesting = Interlocked.CompareExchange(ref m_CallNesting, Nesting.IoInProgress, Nesting.Idle); 1997Interlocked.CompareExchange(ref m_CallNesting, Nesting.Idle, Nesting.IoInProgress); 2127stream.ExchangeCallNesting(Nesting.Idle, Nesting.InternalIO); 2181Interlocked.CompareExchange(ref m_CallNesting, Nesting.InternalIO, Nesting.Idle); 2229Interlocked.CompareExchange(ref m_CallNesting, Nesting.Idle, Nesting.InternalIO); 2543int nesting = (IsPostStream && internalCall && !IgnoreSocketErrors && !BufferOnly && normalShutDown && !NclUtilities.HasShutdownStarted)? Nesting.Closed: Nesting.InError; 2544if (Interlocked.Exchange(ref m_CallNesting, nesting) == Nesting.IoInProgress) 2546if (nesting == Nesting.Closed)