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