100 references to Closed
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
105if (comObj.State != System.ServiceModel.CommunicationState.Closed)
Client.ClientBase.IntegrationTests (20)
ChannelBaseTests.4.0.0.cs (3)
245Assert.True(CommunicationState.Closed == client.State, 249Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State, 253Assert.True(CommunicationState.Closed == factory.State,
ClientBaseTests.4.0.0.cs (17)
182Assert.Equal(CommunicationState.Closed, client.State); 191Assert.Equal(CommunicationState.Closed, client.State); 256Assert.True(CommunicationState.Closed == client.State, 260Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State, 264Assert.True(CommunicationState.Closed == factory.State, 333Assert.True(CommunicationState.Closed == client.State, 337Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State, 341Assert.True(CommunicationState.Closed == factory.State, 412Assert.True(CommunicationState.Closed == client.State, 416Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State, 420Assert.True(CommunicationState.Closed == factory.State, 462Assert.True(CommunicationState.Closed == client.State, 466Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State, 470Assert.True(CommunicationState.Closed == factory.State, 513Assert.True(CommunicationState.Closed == client.State, 517Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State, 521Assert.True(CommunicationState.Closed == 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 (11)
ServiceContractTests.4.0.0.cs (2)
420Assert.True(factory.State == CommunicationState.Closed, 469Assert.True(proxyAsCommunicationObject.State == CommunicationState.Closed,
ServiceContractTests.4.1.0.cs (9)
702Assert.True(factory.State == CommunicationState.Closed, 742Assert.True(((ICommunicationObject)serviceProxy1).State == CommunicationState.Closed, 744Assert.True(((ICommunicationObject)serviceProxy2).State == CommunicationState.Closed, 792Assert.True(factory.State == CommunicationState.Closed, 832Assert.True(((ICommunicationObject)serviceProxy1).State == CommunicationState.Closed, 834Assert.True(((ICommunicationObject)serviceProxy2).State == CommunicationState.Closed, 883Assert.True(factory.State == CommunicationState.Closed, 923Assert.True(((ICommunicationObject)serviceProxy1).State == CommunicationState.Closed, 925Assert.True(((ICommunicationObject)serviceProxy2).State == CommunicationState.Closed,
Infrastructure.Common (1)
ServiceUtilHelper.cs (1)
436if (comObj.State != CommunicationState.Closed)
ScenarioTests.Common.Tests (1)
ScenarioTestHelpers.cs (1)
200if (comObj.State != CommunicationState.Closed)
System.ServiceModel.Primitives (42)
System\ServiceModel\ChannelFactory.cs (1)
155if (State != CommunicationState.Closed)
System\ServiceModel\Channels\ChannelParameterCollection.cs (2)
87case CommunicationState.Closed: 124case CommunicationState.Closed:
System\ServiceModel\Channels\ChannelReliableSession.cs (2)
165Channel.State == CommunicationState.Closed) 197Channel.State == CommunicationState.Closed)
System\ServiceModel\Channels\ClientReliableDuplexSessionChannel.cs (1)
655|| State == CommunicationState.Closed
System\ServiceModel\Channels\CommunicationObject.cs (16)
101get { return _state == CommunicationState.Closed; } 159if (Aborted || _state == CommunicationState.Closed) 241if (originalState != CommunicationState.Closed) 295case CommunicationState.Closed: 388case CommunicationState.Closed: 413if (_state == CommunicationState.Closed || _state == CommunicationState.Closing) 452Fx.Assert(currentState == CommunicationState.Closing || currentState == CommunicationState.Closed || currentState == CommunicationState.Faulted, 479case CommunicationState.Closed: 593_state = CommunicationState.Closed; 757case CommunicationState.Closed: 806case CommunicationState.Closed: 840case CommunicationState.Closed: 869case CommunicationState.Closed: 898case CommunicationState.Closed: 927case CommunicationState.Closed: 964case CommunicationState.Closed:
System\ServiceModel\Channels\ReliableChannelBinder.cs (7)
143if (State == CommunicationState.Closed) 182|| (State == CommunicationState.Closed)) 209|| (channelState == CommunicationState.Closed)) 329|| (State == CommunicationState.Closed)) 374|| (State == CommunicationState.Closed)) 717&& (State != CommunicationState.Closed) 723State = CommunicationState.Closed;
System\ServiceModel\Channels\RequestContextBase.cs (4)
84if (_state == CommunicationState.Closed) 100_state = CommunicationState.Closed; 143_state = CommunicationState.Closed; 182if (_state == CommunicationState.Closed || _state == CommunicationState.Closing)
System\ServiceModel\Channels\ServiceChannel.cs (2)
1618if (State != CommunicationState.Closed) 2509if (!_isTimerCancelled && _binder.Channel.State != CommunicationState.Faulted && _binder.Channel.State != CommunicationState.Closed)
System\ServiceModel\ClientBase.cs (1)
462if (State != CommunicationState.Closed)
System\ServiceModel\Dispatcher\ListenerHandler.cs (1)
144if (channel.State != CommunicationState.Closing && channel.State != CommunicationState.Closed)
System\ServiceModel\Security\SecuritySessionClientSettings.cs (5)
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.Primitives.Tests (22)
Channels\CommunicationObjectTest.cs (3)
103Assert.True(mco.State == CommunicationState.Closed, 230Assert.True(data.StateLeaveOnClosed == CommunicationState.Closed, 297Assert.True(data.StateLeaveOnClosed == CommunicationState.Closed,
Channels\CustomChannelTest.cs (6)
101Assert.True(factory.State == CommunicationState.Closed, 104Assert.True(((ICommunicationObject)channel).State == CommunicationState.Closed, 198Assert.True(factory.State == CommunicationState.Closed, 201Assert.True(((ICommunicationObject)channel).State == CommunicationState.Closed, 391Assert.True(factory.State == CommunicationState.Closed, 394Assert.True(((ICommunicationObject)channel).State == CommunicationState.Closed,
ServiceModel\ChannelFactoryTest.cs (8)
162Assert.Equal(CommunicationState.Closed, factory.State); 170Assert.Equal(CommunicationState.Closed, factory.State); 174Assert.Equal(CommunicationState.Closed, 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 (4)
27Assert.Equal(CommunicationState.Closed, client.State); 125Assert.Equal(CommunicationState.Closed, existingChannelFactory.State); 188Assert.Equal(CommunicationState.Closed, client.State); 206Assert.Equal(CommunicationState.Closed, client.State);
ServiceModel\DuplexClientBaseTest.cs (1)
39Assert.Equal<CommunicationState>(CommunicationState.Closed, duplexClientBase.State);