9 writes to State
System.ServiceModel (9)
System\ServiceModel\Channels\ReceiveContext.cs (9)
26
this.
State
= ReceiveContextState.Received;
119
this.
State
= ReceiveContextState.Abandoned;
185
this.
State
= ReceiveContextState.Completed;
235
this.
State
= ReceiveContextState.Faulted;
304
this.
State
= ReceiveContextState.Received;
328
this.
State
= ReceiveContextState.Abandoning;
344
this.
State
= ReceiveContextState.Completing;
489
this.ReceiveContext.
State
= ReceiveContextState.Abandoned;
591
this.ReceiveContext.
State
= ReceiveContextState.Completed;
17 references to State
System.ServiceModel (15)
System\ServiceModel\Channels\ReceiveContext.cs (15)
231
if (this.
State
== ReceiveContextState.Completed || this.
State
== ReceiveContextState.Abandoned || this.
State
== ReceiveContextState.Faulted)
302
if (this.
State
== ReceiveContextState.Completing || this.
State
== ReceiveContextState.Completed)
320
if (this.
State
== ReceiveContextState.Abandoning || this.
State
== ReceiveContextState.Abandoned)
356
if (
State
== ReceiveContextState.Faulted)
365
if (
State
!= ReceiveContextState.Abandoning)
368
new InvalidOperationException(SR.GetString(SR.ReceiveContextInInvalidState, this.GetType().ToString(), this.
State
.ToString())));
374
if (
State
!= ReceiveContextState.Completing)
377
new InvalidOperationException(SR.GetString(SR.ReceiveContextInInvalidState, this.GetType().ToString(), this.
State
.ToString())));
383
if (
State
!= ReceiveContextState.Received)
386
new InvalidOperationException(SR.GetString(SR.ReceiveContextCannotBeUsed, this.GetType().ToString(), this.
State
.ToString())));
409
return new InvalidOperationException(SR.GetString(SR.ReceiveContextInInvalidState, this.GetType().ToString(), this.
State
.ToString()), exception);
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\Dispatcher\BufferedReceiveManager.cs (1)
90
if (receiveContext.
State
== ReceiveContextState.Received)
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (1)
746
return this.receiveContext != null && this.receiveContext.
State
!= ReceiveContextState.Faulted;