160 references to CommunicationState
Binding.ReliableSession.IntegrationTests (2)
NetHttpBindingTests.cs (1)
245Assert.Equal(CommunicationState.Faulted, ((ICommunicationObject)serviceProxy).State);
WSHttpBindingTests.cs (1)
245Assert.Equal(CommunicationState.Faulted, ((ICommunicationObject)serviceProxy).State);
Binding.UDS.IntegrationTests (2)
ServiceHelper.cs (2)
100if (comObj.State == System.ServiceModel.CommunicationState.Opened) 105if (comObj.State != System.ServiceModel.CommunicationState.Closed)
Client.ClientBase.IntegrationTests (38)
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 (35)
167Assert.Equal(CommunicationState.Created, client.State); 171Assert.Equal(CommunicationState.Opened, client.State); 176Assert.Equal(CommunicationState.Opened, client.State); 182Assert.Equal(CommunicationState.Closed, client.State); 191Assert.Equal(CommunicationState.Closed, client.State); 219Assert.True(CommunicationState.Created == client.State, 222Assert.True(CommunicationState.Created == factory.State, 241Assert.True(CommunicationState.Opened == client.State, 244Assert.True(CommunicationState.Opened == factory.State, 247Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).State, 256Assert.True(CommunicationState.Closed == client.State, 260Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State, 264Assert.True(CommunicationState.Closed == factory.State, 294Assert.True(CommunicationState.Created == client.State, 297Assert.True(CommunicationState.Created == factory.State, 317Assert.True(CommunicationState.Opened == client.State, 320Assert.True(CommunicationState.Opened == factory.State, 323Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).State, 333Assert.True(CommunicationState.Closed == client.State, 337Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State, 341Assert.True(CommunicationState.Closed == factory.State, 373Assert.True(CommunicationState.Created == client.State, 376Assert.True(CommunicationState.Created == factory.State, 396Assert.True(CommunicationState.Opened == client.State, 399Assert.True(CommunicationState.Opened == factory.State, 402Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).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 (13)
ServiceContractTests.4.0.0.cs (4)
311Assert.True(factory.State == CommunicationState.Opened, 365Assert.True(proxyAsCommunicationObject.State == CommunicationState.Opened, 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 (2)
ServiceUtilHelper.cs (2)
431if (comObj.State == CommunicationState.Opened) 436if (comObj.State != CommunicationState.Closed)
ScenarioTests.Common.Tests (2)
ScenarioTestHelpers.cs (2)
195if (comObj.State == CommunicationState.Opened) 200if (comObj.State != CommunicationState.Closed)
System.ServiceModel (1)
netstandard.cs (1)
107[assembly: TypeForwardedTo(typeof(CommunicationState))]
System.ServiceModel.Federation (13)
System\IdentityModel\Security\WrapperSecurityCommunicationObject.cs (8)
124case CommunicationState.Created: 127case CommunicationState.Opening: 130case CommunicationState.Opened: 133case CommunicationState.Closing: 136case CommunicationState.Closed: 139case CommunicationState.Faulted: 203public CommunicationState State 355public CommunicationState State
System\ServiceModel\Federation\WSTrustChannel.cs (2)
31if (requestChannel.State != CommunicationState.Created) 344CommunicationState ICommunicationObject.State
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (3)
441if (ChannelFactory != null && ChannelFactory.State == CommunicationState.Opened) 450if (ChannelFactory != null && ChannelFactory.State == CommunicationState.Opened) 518CommunicationState ICommunicationObject.State
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\FramingChannels.cs (1)
325if (State != CommunicationState.Opening)
System.ServiceModel.Primitives (4)
netstandard.cs (4)
483public System.ServiceModel.CommunicationState State { get { return default; } } 517System.ServiceModel.CommunicationState System.ServiceModel.ICommunicationObject.State { get { return default; } } 797System.ServiceModel.CommunicationState State { get; } 1381public System.ServiceModel.CommunicationState State { get { return default; } }
System.ServiceModel.Primitives.Tests (63)
Channels\CommunicationObjectTest.cs (27)
103Assert.True(mco.State == CommunicationState.Closed, 188Assert.True(data.StateAfterCreate == CommunicationState.Created, 192Assert.True(data.StateEnterOnOpening == CommunicationState.Opening, 195Assert.True(data.StateLeaveOnOpening == CommunicationState.Opening, 199Assert.True(data.StateEnterOnOpen == CommunicationState.Opening, 202Assert.True(data.StateLeaveOnOpen == CommunicationState.Opening, 206Assert.True(data.StateEnterOnOpened == CommunicationState.Opening, 209Assert.True(data.StateLeaveOnOpened == CommunicationState.Opened, 213Assert.True(data.StateEnterOnClosing == CommunicationState.Closing, 216Assert.True(data.StateLeaveOnClosing == CommunicationState.Closing, 220Assert.True(data.StateEnterOnClose == CommunicationState.Closing, 223Assert.True(data.StateLeaveOnClose == CommunicationState.Closing, 227Assert.True(data.StateEnterOnClosed == CommunicationState.Closing, 230Assert.True(data.StateLeaveOnClosed == CommunicationState.Closed, 255Assert.True(data.StateAfterCreate == CommunicationState.Created, 259Assert.True(data.StateEnterOnOpening == CommunicationState.Opening, 262Assert.True(data.StateLeaveOnOpening == CommunicationState.Opening, 266Assert.True(data.StateEnterOnBeginOpen == CommunicationState.Opening, 269Assert.True(data.StateLeaveOnBeginOpen == CommunicationState.Opening, 273Assert.True(data.StateEnterOnOpened == CommunicationState.Opening, 276Assert.True(data.StateLeaveOnOpened == CommunicationState.Opened, 280Assert.True(data.StateEnterOnClosing == CommunicationState.Closing, 283Assert.True(data.StateLeaveOnClosing == CommunicationState.Closing, 287Assert.True(data.StateEnterOnBeginClose == CommunicationState.Closing, 290Assert.True(data.StateLeaveOnBeginClose == CommunicationState.Closing, 294Assert.True(data.StateEnterOnClosed == CommunicationState.Closing, 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 (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 (10)
23Assert.Equal(CommunicationState.Created, client.State); 25Assert.Equal(CommunicationState.Opened, client.State); 27Assert.Equal(CommunicationState.Closed, client.State); 125Assert.Equal(CommunicationState.Closed, existingChannelFactory.State); 184Assert.Equal(CommunicationState.Created, client.State); 186Assert.Equal(CommunicationState.Opened, client.State); 188Assert.Equal(CommunicationState.Closed, client.State); 202Assert.Equal(CommunicationState.Created, client.State); 204Assert.Equal(CommunicationState.Opened, client.State); 206Assert.Equal(CommunicationState.Closed, client.State);
ServiceModel\DuplexClientBaseTest.cs (6)
24Assert.Equal<CommunicationState>(CommunicationState.Created, duplexClientBase.State); 37Assert.Equal<CommunicationState>(CommunicationState.Created, duplexClientBase.State); 39Assert.Equal<CommunicationState>(CommunicationState.Closed, duplexClientBase.State);
UnitTests.Common (17)
MockCommunicationObject.cs (17)
387public CommunicationState StateAfterCreate { get; set; } 388public CommunicationState StateEnterOnOpening { get; set; } 389public CommunicationState StateLeaveOnOpening { get; set; } 390public CommunicationState StateEnterOnOpen { get; set; } 391public CommunicationState StateLeaveOnOpen { get; set; } 392public CommunicationState StateEnterOnBeginOpen { get; set; } 393public CommunicationState StateLeaveOnBeginOpen { get; set; } 394public CommunicationState StateEnterOnOpened { get; set; } 395public CommunicationState StateLeaveOnOpened { get; set; } 397public CommunicationState StateEnterOnClosing { get; set; } 398public CommunicationState StateLeaveOnClosing { get; set; } 399public CommunicationState StateEnterOnClose { get; set; } 400public CommunicationState StateLeaveOnClose { get; set; } 401public CommunicationState StateEnterOnBeginClose { get; set; } 402public CommunicationState StateLeaveOnBeginClose { get; set; } 403public CommunicationState StateEnterOnClosed { get; set; } 404public CommunicationState StateLeaveOnClosed { get; set; }