Implemented interface member:
property
State
System.ServiceModel.ICommunicationObject.State
66 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 (7)
System\IdentityModel\Security\WrapperSecurityCommunicationObject.cs (4)
122
switch (
State
)
149
return new InvalidOperationException(SR.Format(SR.CommunicationObjectCannotBeUsed, GetCommunicationObjectType().ToString(),
State
.ToString()));
205
get { return CommunicationObject.
State
; }
357
get { return CommunicationObject.
State
; }
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (3)
441
if (ChannelFactory != null && ChannelFactory.
State
== CommunicationState.Opened)
450
if (ChannelFactory != null && ChannelFactory.
State
== CommunicationState.Opened)
520
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
);