44 references to MessageState
System.ServiceModel (42)
System\ServiceModel\Channels\Message.cs (28)
21
MessageState
state;
29
get { return state ==
MessageState
.Closed; }
88
public
MessageState
State
100
if (state !=
MessageState
.Closed)
102
state =
MessageState
.Closed;
127
case
MessageState
.Created:
128
state =
MessageState
.Copied;
135
case
MessageState
.Closed:
137
case
MessageState
.Copied:
139
case
MessageState
.Read:
141
case
MessageState
.Written:
333
case
MessageState
.Created:
334
state =
MessageState
.Read;
340
case
MessageState
.Copied:
342
case
MessageState
.Read:
344
case
MessageState
.Written:
346
case
MessageState
.Closed:
560
case
MessageState
.Created:
562
case
MessageState
.Copied:
564
case
MessageState
.Read:
566
case
MessageState
.Written:
568
case
MessageState
.Closed:
680
case
MessageState
.Created:
681
state =
MessageState
.Written;
687
case
MessageState
.Copied:
689
case
MessageState
.Read:
691
case
MessageState
.Written:
693
case
MessageState
.Closed:
System\ServiceModel\Channels\ServiceChannel.cs (1)
1031
bool consumed = ((rpc.Reply != null) && (rpc.Reply.State !=
MessageState
.Created));
System\ServiceModel\Diagnostics\ActivityIdHeader.cs (3)
40
if (message != null && message.State !=
MessageState
.Closed && message.Headers != null)
82
if (message.State !=
MessageState
.Closed && message.Headers != null)
120
if (message.State !=
MessageState
.Closed && message.Headers.MessageVersion.Envelope != EnvelopeVersion.None)
System\ServiceModel\Diagnostics\EventTraceActivityHelper.cs (1)
41
if (message != null && message.State !=
MessageState
.Closed)
System\ServiceModel\Diagnostics\MessageTraceRecord.cs (1)
37
(this.message.State !=
MessageState
.Closed) &&
System\ServiceModel\Diagnostics\TraceUtility.cs (3)
546
(message.State !=
MessageState
.Closed))
661
if (DiagnosticUtility.ShouldUseActivity && message != null && message.State !=
MessageState
.Closed)
1082
if (context != null && null != context.IncomingMessage && (
MessageState
.Closed != context.IncomingMessage.State))
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (2)
318
rpc.DidDeserializeRequestBody = (rpc.Request.State !=
MessageState
.Created);
832
if (null != rpc.OperationContext.IncomingMessage &&
MessageState
.Closed != rpc.OperationContext.IncomingMessage.State)
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (1)
1553
if ((rpc.FaultInfo.Fault != null) && (rpc.FaultInfo.Fault.State !=
MessageState
.Closed))
System\ServiceModel\Dispatcher\StreamFormatter.cs (2)
292
if (message.State ==
MessageState
.Closed)
328
public override bool CanRead { get { return message.State !=
MessageState
.Closed; } }
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\FromReply.cs (1)
156
if (inMessage.State !=
MessageState
.Created)
System\ServiceModel\Activities\InternalReceiveMessage.cs (1)
549
Fx.Assert(request.State ==
MessageState
.Created, "The request message must be in Created state");