10 writes to state
System.ServiceModel (10)
System\ServiceModel\Channels\CommunicationObject.cs (10)
44
this.
state
= CommunicationState.Created;
51
this.
state
= CommunicationState.Created;
111
this.
state
= CommunicationState.Closing;
167
this.
state
= CommunicationState.Closing;
235
this.
state
= CommunicationState.Opening;
286
this.
state
= CommunicationState.Closing;
482
this.
state
= CommunicationState.Faulted;
579
this.
state
= CommunicationState.Opening;
623
this.
state
= CommunicationState.Closed;
719
this.
state
= CommunicationState.Opened;
23 references to state
System.ServiceModel (23)
System\ServiceModel\Channels\CommunicationObject.cs (23)
67
get { return this.
state
== CommunicationState.Closed; }
72
get { return this.
state
; }
103
if (this.aborted || this.
state
== CommunicationState.Closed)
161
originalState = this.
state
;
280
originalState = this.
state
;
349
return new InvalidOperationException(SR.GetString(SR.CommunicationObjectCannotBeUsed, this.GetCommunicationObjectType().ToString(), this.
state
.ToString()));
354
return new InvalidOperationException(SR.GetString(SR.CommunicationObjectCannotBeModifiedInState, this.GetCommunicationObjectType().ToString(), this.
state
.ToString()));
431
switch (this.
state
)
473
if (this.
state
== CommunicationState.Closed || this.
state
== CommunicationState.Closing)
476
if (this.
state
== CommunicationState.Faulted)
519
CommunicationState currentState = this.
state
;
545
switch (this.
state
)
717
if (this.aborted || this.
state
!= CommunicationState.Opening)
772
switch (this.
state
)
821
switch (this.
state
)
855
switch (this.
state
)
884
switch (this.
state
)
913
switch (this.
state
)
942
switch (this.
state
)
969
if (this.
state
== CommunicationState.Created || this.
state
== CommunicationState.Opening)
977
switch (this.
state
)