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)
101
get { return
_state
== CommunicationState.Closed; }
106
get { return
_state
; }
159
if (Aborted ||
_state
== CommunicationState.Closed)
240
originalState =
_state
;
334
return new InvalidOperationException(SRP.Format(SRP.CommunicationObjectCannotBeUsed, GetCommunicationObjectType().ToString(),
_state
.ToString()));
339
return new InvalidOperationException(SRP.Format(SRP.CommunicationObjectCannotBeModifiedInState, GetCommunicationObjectType().ToString(),
_state
.ToString()));
374
switch (
_state
)
413
if (
_state
== CommunicationState.Closed ||
_state
== CommunicationState.Closing)
418
if (
_state
== CommunicationState.Faulted)
450
CommunicationState currentState =
_state
;
476
switch (
_state
)
687
if (Aborted ||
_state
!= CommunicationState.Opening)
743
switch (
_state
)
792
switch (
_state
)
826
switch (
_state
)
855
switch (
_state
)
884
switch (
_state
)
913
switch (
_state
)
940
if (
_state
== CommunicationState.Created ||
_state
== CommunicationState.Opening)
950
switch (
_state
)