Implemented interface member:
property
State
System.ServiceModel.ICommunicationObject.State
246 references to State
System.ServiceModel (223)
System\ServiceModel\Administration\ServiceInfo.cs (1)
99
return this.Service.
State
;
System\ServiceModel\ChannelFactory.cs (8)
39
if (this.
State
== CommunicationState.Created || this.
State
== CommunicationState.Opening)
113
if (this.
State
!= CommunicationState.Opened)
117
if (this.
State
!= CommunicationState.Opened)
205
Fx.Assert(this.
State
== CommunicationState.Created || this.
State
== CommunicationState.Opening, "");
214
Fx.Assert(this.
State
== CommunicationState.Created || this.
State
== CommunicationState.Opening, "");
System\ServiceModel\Channels\ChannelFactoryBase.cs (1)
147
if (this.
State
!= CommunicationState.Opened)
System\ServiceModel\Channels\ChannelReliableSession.cs (4)
256
this.channel.
State
== CommunicationState.Faulted ||
257
this.channel.
State
== CommunicationState.Closed)
288
this.channel.
State
== CommunicationState.Faulted ||
289
this.channel.
State
== CommunicationState.Closed)
System\ServiceModel\Channels\ChannelTracker.cs (1)
34
if (this.
State
!= CommunicationState.Opened)
System\ServiceModel\Channels\ConnectionOrientedTransportChannelListener.cs (1)
454
if (this.
State
!= CommunicationState.Opened)
System\ServiceModel\Channels\DatagramAdapter.cs (1)
203
if (this.
State
== CommunicationState.Opened)
System\ServiceModel\Channels\FramingChannels.cs (1)
360
if (this.
State
!= CommunicationState.Opening)
System\ServiceModel\Channels\HttpChannelFactory.cs (3)
948
if (this.
State
== CommunicationState.Created)
1220
if (channel.
State
!= CommunicationState.Opened)
1745
if (channel.
State
!= CommunicationState.Opened)
System\ServiceModel\Channels\MsmqInputChannelBase.cs (2)
179
else if (CommunicationState.Opened == this.
State
)
248
else if (CommunicationState.Opened == this.
State
)
System\ServiceModel\Channels\MsmqInputChannelListenerBase.cs (2)
27
if (!this.IsDisposed && (CommunicationState.Opened == this.
State
|| CommunicationState.Opening == this.
State
))
System\ServiceModel\Channels\MsmqInputSessionChannel.cs (5)
113
if (CommunicationState.Closed == this.
State
|| CommunicationState.Closing == this.
State
)
139
if (CommunicationState.Closed == this.
State
|| CommunicationState.Closing == this.
State
)
540
if (this.channel.
State
== CommunicationState.Opened && this.channel.InternalPendingItems > 0)
System\ServiceModel\Channels\MsmqInputSessionChannelListener.cs (2)
95
if (CommunicationState.Opened == this.
State
)
170
if (CommunicationState.Opened == this.
State
)
System\ServiceModel\Channels\MsmqOutputSessionChannel.cs (1)
286
if (this.channel.
State
!= CommunicationState.Closed)
System\ServiceModel\Channels\OneWayChannelListener.cs (3)
1056
if (this.
State
== CommunicationState.Closing || this.
State
== CommunicationState.Closed)
1174
if (this.
State
!= CommunicationState.Opened)
System\ServiceModel\Channels\PeerChannelListener.cs (1)
148
if (this.
State
< CommunicationState.Closed && this.peerNode != null)
System\ServiceModel\Channels\PeerDuplexChannel.cs (2)
62
Fx.Assert(this.
State
< CommunicationState.Opened, "Can not change the dispatcher on DuplexChannel after Open.");
102
if (this.
State
< CommunicationState.Closed)
System\ServiceModel\Channels\PeerInputChannel.cs (1)
58
if (this.
State
< CommunicationState.Closed)
System\ServiceModel\Channels\PeerOutputChannel.cs (1)
60
if (this.
State
< CommunicationState.Closed)
System\ServiceModel\Channels\ReliableChannelListener.cs (1)
77
get { return this.
State
== CommunicationState.Opened; }
System\ServiceModel\Channels\ReliableDuplexSessionChannel.cs (19)
354
if (this.Aborted || this.
State
== CommunicationState.Faulted)
396
else if (this.
State
== CommunicationState.Closing)
726
if (this.
State
== CommunicationState.Closing
727
|| this.
State
== CommunicationState.Closed
728
|| this.
State
== CommunicationState.Faulted)
757
if ((this.
State
!= CommunicationState.Opened)
921
if (this.
State
== CommunicationState.Opening ||
922
this.
State
== CommunicationState.Opened ||
923
this.
State
== CommunicationState.Closing)
938
if (this.
State
== CommunicationState.Opening ||
939
this.
State
== CommunicationState.Opened ||
940
this.
State
== CommunicationState.Closing)
983
if ((this.
State
!= CommunicationState.Opened)
1424
if (this.
State
== CommunicationState.Opened)
1426
else if (this.
State
== CommunicationState.Faulted)
1544
if ((this.
State
== CommunicationState.Opened || this.
State
== CommunicationState.Closing) &&
1624
if ((channel.
State
== CommunicationState.Opened || channel.
State
== CommunicationState.Closing) &&
System\ServiceModel\Channels\ReliableInputSessionChannel.cs (7)
513
if (this.
State
== CommunicationState.Closing
514
|| this.
State
== CommunicationState.Closed
515
|| this.
State
== CommunicationState.Faulted)
627
if (this.Aborted || this.
State
== CommunicationState.Faulted)
668
else if (this.
State
== CommunicationState.Closing)
1044
if (this.Aborted || (this.
State
== CommunicationState.Faulted))
1076
else if (this.
State
== CommunicationState.Closing)
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (7)
264
if (this.
State
== CommunicationState.Opening ||
265
this.
State
== CommunicationState.Opened ||
266
this.
State
== CommunicationState.Closing)
281
if (this.
State
== CommunicationState.Opening ||
282
this.
State
== CommunicationState.Opened ||
283
this.
State
== CommunicationState.Closing)
735
if (this.
State
== CommunicationState.Faulted)
System\ServiceModel\Channels\ReliableReplySessionChannel.cs (11)
255
if (this.
State
== CommunicationState.Faulted || this.Aborted)
271
if (this.
State
== CommunicationState.Faulted || this.Aborted)
580
if (this.Aborted || this.
State
== CommunicationState.Faulted || this.
State
== CommunicationState.Closed)
591
bool canReply = this.connection.AllAdded && (this.
State
== CommunicationState.Closing);
597
if (this.
State
== CommunicationState.Closing)
649
if (this.Aborted || this.
State
== CommunicationState.Faulted || this.
State
== CommunicationState.Closed)
1047
if (this.Aborted || this.
State
== CommunicationState.Faulted || this.
State
== CommunicationState.Closed)
1085
else if ((this.
State
== CommunicationState.Closing) && !isLastOnly)
System\ServiceModel\Channels\ReliableRequestSessionChannel.cs (7)
187
if (this.
State
== CommunicationState.Faulted)
286
if (this.
State
== CommunicationState.Opening ||
287
this.
State
== CommunicationState.Opened ||
288
this.
State
== CommunicationState.Closing)
303
if (this.
State
== CommunicationState.Opening ||
304
this.
State
== CommunicationState.Opened ||
305
this.
State
== CommunicationState.Closing)
System\ServiceModel\Channels\SecurityChannelListener.cs (16)
144
if (this.
State
== CommunicationState.Opened)
352
if (this.
State
== CommunicationState.Closing && this.
State
== CommunicationState.Closed)
600
if (this.securityListener.
State
== CommunicationState.Closed || this.securityListener.
State
== CommunicationState.Closing)
685
if (this.
State
== CommunicationState.Closed || this.
State
== CommunicationState.Closing)
707
if (this.
State
== CommunicationState.Closed || this.
State
== CommunicationState.Closing)
963
if (this.
State
== CommunicationState.Closed || this.
State
== CommunicationState.Faulted)
1140
if (this.
State
== CommunicationState.Closed || this.
State
== CommunicationState.Faulted)
1331
if (this.
State
== CommunicationState.Closed || this.
State
== CommunicationState.Faulted)
1556
if (this.channel.
State
== CommunicationState.Closed)
System\ServiceModel\Channels\ServiceChannel.cs (6)
600
if ((this.
State
== CommunicationState.Created) && !operation.IsInitiating)
892
if (this.
State
== CommunicationState.Opened)
1214
if (this.
State
== CommunicationState.Opening)
1541
if (this.InstanceContext != null && this.InstanceContext.
State
!= CommunicationState.Closed && this.InstanceContext.
State
!= CommunicationState.Faulted)
1567
if (this.
State
== CommunicationState.Opening)
System\ServiceModel\Channels\TransportReplyChannelAcceptor.cs (1)
107
if (this.
State
!= CommunicationState.Opened)
System\ServiceModel\ClientBase.cs (3)
456
return GetChannelFactory().
State
;
831
if (factoryRef.ChannelFactory.
State
!= CommunicationState.Opened)
914
Fx.Assert(this.channelFactoryRef.ChannelFactory.
State
== CommunicationState.Opened,
System\ServiceModel\Description\ServiceCredentials.cs (2)
236
if (!(serviceHost.
State
== CommunicationState.Created || serviceHost.
State
== CommunicationState.Opening))
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (2)
576
if (this.
State
== CommunicationState.Opened)
592
if (this.
State
== CommunicationState.Opened)
System\ServiceModel\Dispatcher\ChannelDispatcherCollection.cs (2)
43
if (this.service.
State
== CommunicationState.Closed)
64
if (this.service.
State
== CommunicationState.Closed)
System\ServiceModel\Dispatcher\ChannelHandler.cs (1)
177
if (this.listener.
State
== CommunicationState.Opened)
System\ServiceModel\Dispatcher\InstanceBehavior.cs (4)
116
if (context.
State
== CommunicationState.Opened)
126
if (context.
State
== CommunicationState.Opened)
192
if (rpc.InstanceContext.
State
== CommunicationState.Created)
196
if (rpc.InstanceContext.
State
== CommunicationState.Created)
System\ServiceModel\Dispatcher\InstanceContextManager.cs (1)
85
if (instance.
State
== CommunicationState.Opened)
System\ServiceModel\Dispatcher\ServiceThrottle.cs (1)
407
if (this.host.
State
== CommunicationState.Opened)
System\ServiceModel\Dispatcher\SingletonInstanceContextProvider.cs (2)
39
else if (instanceContext.
State
!= CommunicationState.Opened)
46
if (instanceContext.
State
!= CommunicationState.Opened)
System\ServiceModel\InstanceContext.cs (6)
198
if (this.
State
== CommunicationState.Closed)
345
CommunicationState state = channel.
State
;
358
if (!(this.
State
!= CommunicationState.Created && this.
State
!= CommunicationState.Opening))
363
if (this.
State
!= CommunicationState.Opened)
374
if (this.
State
== CommunicationState.Opened)
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
252
CommunicationState state = this.CommunicationObject.
State
;
System\ServiceModel\Security\NegotiationTokenAuthenticator.cs (4)
671
if (this.isTimerCancelled || (this.CommunicationObject.
State
!= CommunicationState.Opened && this.CommunicationObject.
State
!= CommunicationState.Opening))
697
if (this.CommunicationObject.
State
== CommunicationState.Opened || this.CommunicationObject.
State
== CommunicationState.Opening)
System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
410
return this.CommunicationObject.
State
!= CommunicationState.Created;
System\ServiceModel\Security\SecuritySessionClientSettings.cs (18)
1370
if (this.
State
!= CommunicationState.Closed)
1448
if (this.
State
!= CommunicationState.Closed)
1650
if (this.
State
== CommunicationState.Closed)
1701
if (this.channel.
State
!= CommunicationState.Closed)
1735
if (self.channel.
State
!= CommunicationState.Closed)
1777
if (channel.
State
!= CommunicationState.Closed)
1804
if (self.channel.
State
!= CommunicationState.Closed)
2094
if (this.sessionChannel.
State
!= CommunicationState.Closed)
2128
if (thisResult.sessionChannel.
State
!= CommunicationState.Closed)
2171
if (this.sessionChannel.
State
!= CommunicationState.Closed)
2201
if (thisResult.sessionChannel.
State
!= CommunicationState.Closed)
2349
if (this.sessionChannel.
State
== CommunicationState.Closed)
2396
if (self.sessionChannel.
State
== CommunicationState.Closed)
3300
if (this.
State
== CommunicationState.Closed || this.
State
== CommunicationState.Faulted || this.IsInputClosed)
3505
if (this.channel.
State
!= CommunicationState.Closed)
3540
if (this.channel.
State
!= CommunicationState.Closed)
3585
if (this.channel.
State
!= CommunicationState.Closed)
System\ServiceModel\Security\SecuritySessionServerSettings.cs (37)
802
if (this.communicationObject.
State
== CommunicationState.Closed
803
|| this.communicationObject.
State
== CommunicationState.Faulted)
820
if (this.communicationObject.
State
!= CommunicationState.Closed
821
&& this.communicationObject.
State
!= CommunicationState.Closing
822
&& this.communicationObject.
State
!= CommunicationState.Faulted)
1028
if (this.settings.communicationObject.
State
!= CommunicationState.Opened)
1232
if (this.
State
== CommunicationState.Closed || this.
State
== CommunicationState.Closing)
1308
if (this.
State
!= CommunicationState.Closed)
1525
if (isInputClosed || this.
State
== CommunicationState.Faulted)
2330
if (this.channel.
State
!= CommunicationState.Closed)
2373
if (self.channel.
State
!= CommunicationState.Closed)
2435
if (channel.
State
!= CommunicationState.Closed)
2459
if (self.channel.
State
!= CommunicationState.Closed)
2690
if (channel.isInputClosed || channel.
State
== CommunicationState.Faulted)
2955
if (this.
State
!= CommunicationState.Closed)
3041
if (this.
State
!= CommunicationState.Closed)
3060
if (this.
State
== CommunicationState.Created)
3184
if (this.sessionChannel.
State
!= CommunicationState.Closed)
3228
if (thisResult.sessionChannel.
State
!= CommunicationState.Closed)
3277
if (this.sessionChannel.
State
!= CommunicationState.Closed)
3319
if (thisResult.sessionChannel.
State
!= CommunicationState.Closed)
3378
if (this.sessionChannel.
State
!= CommunicationState.Closed)
3417
if (thisResult.sessionChannel.
State
!= CommunicationState.Closed)
3742
if (this.
State
!= CommunicationState.Closed) throw;
3756
if (this.
State
== CommunicationState.Closed)
3829
if (this.
State
!= CommunicationState.Closed)
3840
if (this.
State
== CommunicationState.Created)
3993
if (this.
State
!= CommunicationState.Closed) throw;
4168
if (sessionChannel.
State
!= CommunicationState.Closed) throw;
4196
if (thisResult.sessionChannel.
State
!= CommunicationState.Closed)
4241
if (this.sessionChannel.
State
!= CommunicationState.Closed)
4282
if (thisResult.sessionChannel.
State
!= CommunicationState.Closed)
4349
if (this.sessionChannel.
State
!= CommunicationState.Closed)
4386
if (thisResult.sessionChannel.
State
!= CommunicationState.Closed)
4442
if (this.sessionChannel.
State
!= CommunicationState.Closed) throw;
4484
if (thisResult.sessionChannel.
State
!= CommunicationState.Closed)
System\ServiceModel\Security\WrapperSecurityCommunicationObject.cs (2)
171
get { return this.communicationObject.
State
; }
348
get { return this.communicationObject.
State
; }
System\ServiceModel\ServiceConfiguration.cs (2)
156
if ((this.host.
State
!= CommunicationState.Created) && (this.host.
State
!= CommunicationState.Opening))
System\ServiceModel\ServiceHost.cs (18)
92
else if (this.
State
== CommunicationState.Created || this.
State
== CommunicationState.Opening)
111
else if (this.
State
== CommunicationState.Created || this.
State
== CommunicationState.Opening)
192
else if (this.
State
== CommunicationState.Created || this.
State
== CommunicationState.Opening)
359
if (this.
State
!= CommunicationState.Created && this.
State
!= CommunicationState.Opening)
393
if (this.
State
!= CommunicationState.Created && this.
State
!= CommunicationState.Opening)
574
Fx.Assert(this.
State
== CommunicationState.Created || this.
State
== CommunicationState.Opening, "");
588
Fx.Assert(this.
State
== CommunicationState.Created || this.
State
== CommunicationState.Opening, "");
601
Fx.Assert(this.
State
== CommunicationState.Created || this.
State
== CommunicationState.Opening, "");
615
Fx.Assert(this.
State
== CommunicationState.Created || this.
State
== CommunicationState.Opening, "");
System.ServiceModel.Activation (1)
System\ServiceModel\ServiceHostingEnvironment.cs (1)
1047
if (service.
State
!= CommunicationState.Opened)
System.ServiceModel.Activities (12)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (2)
215
if (thisPtr.Host.
State
== CommunicationState.Opening || thisPtr.Host.
State
== CommunicationState.Opened)
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (1)
477
Fx.AssertAndThrow(
State
!= CommunicationState.Opened,
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (2)
2699
if (this.workflowInstance.persistenceContext.
State
!= CommunicationState.Opened)
3616
if (this.instance.persistenceContext != null && this.instance.persistenceContext.
State
== CommunicationState.Created)
System\ServiceModel\Activities\InternalSendMessage.cs (5)
2831
return this.channelFactory.
State
== CommunicationState.Created;
2930
if (this.channelFactory.
State
!= CommunicationState.Closed &&
2931
this.channelFactory.
State
!= CommunicationState.Closing)
2953
if (this.channelFactory.
State
!= CommunicationState.Closed &&
2954
this.channelFactory.
State
!= CommunicationState.Closing)
System\ServiceModel\Activities\WorkflowServiceHost.cs (2)
222
return this.
State
== CommunicationState.Created || this.
State
== CommunicationState.Opening;
System.ServiceModel.Channels (3)
System\ServiceModel\Channels\UdpChannelListener.cs (3)
194
Fx.Assert(this.
State
!= CommunicationState.Opened, "buffer manager should only be null when closing down and the channel instance has taken control of the receive manager.");
466
if (this.
State
!= CommunicationState.Opened)
468
Fx.Assert(this.
State
> CommunicationState.Opened, "DispatchMessage called when object is not fully opened. This would indicate that the receive loop started before transitioning to CommunicationState.Opened, which should not happen.");
System.ServiceModel.Discovery (2)
System\ServiceModel\Discovery\OnlineAnnouncementChannelDispatcher.cs (2)
126
if (this.
State
!= CommunicationState.Opening)
146
if (this.
State
!= CommunicationState.Opening)
System.WorkflowServices (5)
System\ServiceModel\Dispatcher\DurableInstanceProvider.cs (2)
46
if (instanceContext.
State
== CommunicationState.Faulted || instanceContext.Aborted)
51
else if (instanceContext.
State
== CommunicationState.Closed)
System\ServiceModel\Dispatcher\WorkflowInstanceProvider.cs (1)
23
if (instanceContext.
State
== CommunicationState.Faulted || instanceContext.Aborted)
System\Workflow\Runtime\Hosting\ChannelManager.cs (2)
234
bool invalidFactory = (channelFactory.ChannelFactory.
State
!= CommunicationState.Opened);
262
if (factory == null || factory.ChannelFactory.
State
!= CommunicationState.Opened)