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