7 writes to _state
System.ServiceModel.Primitives (7)
System\ServiceModel\Channels\CommunicationObject.cs (7)
43_state = CommunicationState.Created; 166_state = CommunicationState.Closing; 243_state = CommunicationState.Closing; 423_state = CommunicationState.Faulted; 517_state = CommunicationState.Opening; 593_state = CommunicationState.Closed; 692_state = CommunicationState.Opened;
22 references to _state
System.ServiceModel.Primitives (22)
System\ServiceModel\Channels\CommunicationObject.cs (22)
101get { return _state == CommunicationState.Closed; } 106get { return _state; } 159if (Aborted || _state == CommunicationState.Closed) 240originalState = _state; 334return new InvalidOperationException(SRP.Format(SRP.CommunicationObjectCannotBeUsed, GetCommunicationObjectType().ToString(), _state.ToString())); 339return new InvalidOperationException(SRP.Format(SRP.CommunicationObjectCannotBeModifiedInState, GetCommunicationObjectType().ToString(), _state.ToString())); 374switch (_state) 413if (_state == CommunicationState.Closed || _state == CommunicationState.Closing) 418if (_state == CommunicationState.Faulted) 450CommunicationState currentState = _state; 476switch (_state) 687if (Aborted || _state != CommunicationState.Opening) 743switch (_state) 792switch (_state) 826switch (_state) 855switch (_state) 884switch (_state) 913switch (_state) 940if (_state == CommunicationState.Created || _state == CommunicationState.Opening) 950switch (_state)