Implemented interface member:
property
State
System.ServiceModel.ICommunicationObject.State
132 references to State
Client.ClientBase.IntegrationTests (24)
ChannelBaseTests.4.0.0.cs (2)
253Assert.True(CommunicationState.Closed == factory.State, 254String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State));
ClientBaseTests.4.0.0.cs (22)
222Assert.True(CommunicationState.Created == factory.State, 223String.Format("Expected channel factory state to be Created but actual was '{0}'", factory.State)); 244Assert.True(CommunicationState.Opened == factory.State, 245String.Format("Expected channel factory state to be Opened but actual was '{0}'", factory.State)); 264Assert.True(CommunicationState.Closed == factory.State, 265String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State)); 297Assert.True(CommunicationState.Created == factory.State, 298String.Format("Expected channel factory state to be Created but actual was '{0}'", factory.State)); 320Assert.True(CommunicationState.Opened == factory.State, 321String.Format("Expected channel factory state to be Opened but actual was '{0}'", factory.State)); 341Assert.True(CommunicationState.Closed == factory.State, 342String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State)); 376Assert.True(CommunicationState.Created == factory.State, 377String.Format("Expected channel factory state to be Created but actual was '{0}'", factory.State)); 399Assert.True(CommunicationState.Opened == factory.State, 400String.Format("Expected channel factory state to be Opened but actual was '{0}'", factory.State)); 420Assert.True(CommunicationState.Closed == factory.State, 421String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State)); 470Assert.True(CommunicationState.Closed == factory.State, 471String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State)); 521Assert.True(CommunicationState.Closed == factory.State, 522String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State));
Client.TypedClient.IntegrationTests (2)
TypedProxyDuplexTests.4.1.0.cs (2)
49if (factory != null && factory.State != CommunicationState.Closed) 84if (factory != null && factory.State != CommunicationState.Closed)
Contract.Service.IntegrationTests (10)
ServiceContractTests.4.0.0.cs (4)
311Assert.True(factory.State == CommunicationState.Opened, 312String.Format("Expected factory state 'Opened', actual was '{0}'", factory.State)); 420Assert.True(factory.State == CommunicationState.Closed, 421String.Format("Expected factory state 'Closed', actual was '{0}'", factory.State));
ServiceContractTests.4.1.0.cs (6)
702Assert.True(factory.State == CommunicationState.Closed, 703String.Format("Expected factory state 'Closed', actual was '{0}'", factory.State)); 792Assert.True(factory.State == CommunicationState.Closed, 793String.Format("Expected factory state 'Closed', actual was '{0}'", factory.State)); 883Assert.True(factory.State == CommunicationState.Closed, 884String.Format("Expected factory state 'Closed', actual was '{0}'", factory.State));
System.ServiceModel.Federation (3)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (3)
456if (ChannelFactory != null && ChannelFactory.State == CommunicationState.Opened) 465if (ChannelFactory != null && ChannelFactory.State == CommunicationState.Opened) 538get { return _communicationObject.State; }
System.ServiceModel.Primitives (70)
System\ServiceModel\ChannelFactory.cs (10)
37if (State == CommunicationState.Created || State == CommunicationState.Opening) 101if (State != CommunicationState.Opened) 105if (State != CommunicationState.Opened) 150if (State == CommunicationState.Opened) 155if (State != CommunicationState.Closed) 172Fx.Assert(State == CommunicationState.Created || State == CommunicationState.Opening, ""); 181Fx.Assert(State == CommunicationState.Created || State == CommunicationState.Opening, "");
System\ServiceModel\Channels\ChannelFactoryBase.cs (1)
161if (State != CommunicationState.Opened)
System\ServiceModel\Channels\ChannelReliableSession.cs (4)
164Channel.State == CommunicationState.Faulted || 165Channel.State == CommunicationState.Closed) 196Channel.State == CommunicationState.Faulted || 197Channel.State == CommunicationState.Closed)
System\ServiceModel\Channels\ClientReliableDuplexSessionChannel.cs (18)
276if (Aborted || State == CommunicationState.Faulted) 318else if (State == CommunicationState.Closing) 654if (State == CommunicationState.Closing 655|| State == CommunicationState.Closed 656|| State == CommunicationState.Faulted) 685if (State == CommunicationState.Opening || 686State == CommunicationState.Opened || 687State == CommunicationState.Closing) 702if (State == CommunicationState.Opening || 703State == CommunicationState.Opened || 704State == CommunicationState.Closing) 757if ((State != CommunicationState.Opened) 1038if (State == CommunicationState.Opened) 1040else if (State == CommunicationState.Faulted) 1130if ((State == CommunicationState.Opened || State == CommunicationState.Closing) && 1186if ((channel.State == CommunicationState.Opened || channel.State == CommunicationState.Closing) &&
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (7)
213if (State == CommunicationState.Opening || 214State == CommunicationState.Opened || 215State == CommunicationState.Closing) 230if (State == CommunicationState.Opening || 231State == CommunicationState.Opened || 232State == CommunicationState.Closing) 603if (State == CommunicationState.Faulted)
System\ServiceModel\Channels\ReliableRequestSessionChannel.cs (7)
144if (State == CommunicationState.Faulted) 222if (State == CommunicationState.Opening || 223State == CommunicationState.Opened || 224State == CommunicationState.Closing) 239if (State == CommunicationState.Opening || 240State == CommunicationState.Opened || 241State == CommunicationState.Closing)
System\ServiceModel\Channels\ServiceChannel.cs (5)
543if ((State == CommunicationState.Created) && !operation.IsInitiating) 835if (State == CommunicationState.Opened) 1146if (State == CommunicationState.Opening) 1613if (State == CommunicationState.Opened) 1618if (State != CommunicationState.Closed)
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
540get { return _serviceChannel.State; }
System\ServiceModel\ClientBase.cs (3)
257return GetChannelFactory().State; 638if (factoryRef.ChannelFactory.State != CommunicationState.Opened) 727Fx.Assert(_channelFactoryRef.ChannelFactory.State == CommunicationState.Opened,
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (2)
348if (State == CommunicationState.Opened) 359if (State == CommunicationState.Opened)
System\ServiceModel\Dispatcher\ChannelHandler.cs (1)
108if (_listener.State == CommunicationState.Opened)
System\ServiceModel\Dispatcher\InstanceBehavior.cs (2)
55if (rpc.InstanceContext.State == CommunicationState.Created) 59if (rpc.InstanceContext.State == CommunicationState.Created)
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
247CommunicationState state = CommunicationObject.State;
System\ServiceModel\Security\SecuritySessionClientSettings.cs (6)
1113if (State != CommunicationState.Closed) 1172if (State != CommunicationState.Closed) 1288if (State == CommunicationState.Closed) 1659if (State == CommunicationState.Closed || State == CommunicationState.Faulted || IsInputClosed) 1799if (_channel.State != CommunicationState.Closed)
System\ServiceModel\Security\WrapperSecurityCommunicationObject.cs (2)
176get { return CommunicationObject.State; } 338get { return CommunicationObject.State; }
System.ServiceModel.Primitives.Tests (23)
Channels\CommunicationObjectTest.cs (2)
103Assert.True(mco.State == CommunicationState.Closed, 104String.Format("Expected final state to be 'Closed' but actual was '{0}", mco.State));
Channels\CustomChannelTest.cs (6)
101Assert.True(factory.State == CommunicationState.Closed, 102String.Format("Expected factory's final state to be Closed but was '{0}'", factory.State)); 198Assert.True(factory.State == CommunicationState.Closed, 199String.Format("Expected factory's final state to be Closed but was '{0}'", factory.State)); 391Assert.True(factory.State == CommunicationState.Closed, 392String.Format("Expected factory's final state to be Closed but was '{0}'", factory.State));
ServiceModel\ChannelFactoryTest.cs (14)
148Assert.Equal(CommunicationState.Created, factory.State); 154Assert.Equal(CommunicationState.Opened, factory.State); 162Assert.Equal(CommunicationState.Closed, factory.State); 170Assert.Equal(CommunicationState.Closed, factory.State); 174Assert.Equal(CommunicationState.Closed, factory.State); 218Assert.True(CommunicationState.Created == factory.State, 219string.Format("factory.State - Expected: {0}, Actual: {1}.", CommunicationState.Created, factory.State)); 222Assert.True(CommunicationState.Opened == factory.State, 223string.Format("factory.State - Expected: {0}, Actual: {1}.", CommunicationState.Opened, factory.State)); 226Assert.True(CommunicationState.Closed == factory.State, 227string.Format("factory.State - Expected: {0}, Actual: {1}.", CommunicationState.Closed, factory.State)); 231if (factory != null && factory.State != CommunicationState.Closed) 288Assert.Equal(CommunicationState.Closed, factory.State); 317Assert.Equal(CommunicationState.Closed, factory.State);
ServiceModel\ClientBaseTest.cs (1)
125Assert.Equal(CommunicationState.Closed, existingChannelFactory.State);