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