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