6 implementations of State
System.ServiceModel.Federation (3)
System\IdentityModel\Security\WrapperSecurityCommunicationObject.cs (1)
355public CommunicationState State
System\ServiceModel\Federation\WSTrustChannel.cs (1)
344CommunicationState ICommunicationObject.State
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
518CommunicationState ICommunicationObject.State
System.ServiceModel.Primitives (3)
netstandard.cs (3)
483public System.ServiceModel.CommunicationState State { get { return default; } } 517System.ServiceModel.CommunicationState System.ServiceModel.ICommunicationObject.State { get { return default; } } 1381public System.ServiceModel.CommunicationState State { get { return default; } }
68 references to State
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 (18)
ChannelBaseTests.4.0.0.cs (2)
249Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State, 250String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State));
ClientBaseTests.4.0.0.cs (16)
247Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).State, 248String.Format("Expected proxy state to be Opened but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 260Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State, 261String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 323Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).State, 324String.Format("Expected proxy state to be Opened but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 337Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State, 338String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 402Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).State, 403String.Format("Expected proxy state to be Opened but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 416Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State, 417String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 466Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State, 467String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 517Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State, 518String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State));
Contract.Service.IntegrationTests (16)
ServiceContractTests.4.0.0.cs (4)
365Assert.True(proxyAsCommunicationObject.State == CommunicationState.Opened, 366String.Format("Expected proxy state 'Opened', actual was '{0}'", proxyAsCommunicationObject.State)); 469Assert.True(proxyAsCommunicationObject.State == CommunicationState.Closed, 470String.Format("Expected proxy state 'Closed', actual was '{0}'", proxyAsCommunicationObject.State));
ServiceContractTests.4.1.0.cs (12)
742Assert.True(((ICommunicationObject)serviceProxy1).State == CommunicationState.Closed, 743String.Format("Expected channel 1 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy1).State)); 744Assert.True(((ICommunicationObject)serviceProxy2).State == CommunicationState.Closed, 745String.Format("Expected channel 2 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy2).State)); 832Assert.True(((ICommunicationObject)serviceProxy1).State == CommunicationState.Closed, 833String.Format("Expected channel 1 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy1).State)); 834Assert.True(((ICommunicationObject)serviceProxy2).State == CommunicationState.Closed, 835String.Format("Expected channel 2 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy2).State)); 923Assert.True(((ICommunicationObject)serviceProxy1).State == CommunicationState.Closed, 924String.Format("Expected channel 1 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy1).State)); 925Assert.True(((ICommunicationObject)serviceProxy2).State == CommunicationState.Closed, 926String.Format("Expected channel 2 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy2).State));
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.Federation (3)
System\ServiceModel\Federation\WSTrustChannel.cs (3)
31if (requestChannel.State != CommunicationState.Created) 32throw new InvalidOperationException(SR.Format(SR.IRequestChannelMustBeCreated, requestChannel.State)); 346get { return RequestChannel.State; }
System.ServiceModel.Primitives.Tests (6)
Channels\CustomChannelTest.cs (6)
104Assert.True(((ICommunicationObject)channel).State == CommunicationState.Closed, 105String.Format("Expected channel's final state to be Closed but was '{0}'", ((ICommunicationObject)channel).State)); 201Assert.True(((ICommunicationObject)channel).State == CommunicationState.Closed, 202String.Format("Expected channel's final state to be Closed but was '{0}'", ((ICommunicationObject)channel).State)); 394Assert.True(((ICommunicationObject)channel).State == CommunicationState.Closed, 395String.Format("Expected channel's final state to be Closed but was '{0}'", ((ICommunicationObject)channel).State));
UnitTests.Common (17)
MockCommunicationObject.cs (17)
321data.StateAfterCreate = mco.State; 325data.StateEnterOnOpening = mco.State; 327data.StateLeaveOnOpening = mco.State; 332data.StateEnterOnOpen = mco.State; 334data.StateLeaveOnOpen = mco.State; 339data.StateEnterOnBeginOpen = mco.State; 341data.StateLeaveOnBeginOpen = mco.State; 347data.StateEnterOnOpened = mco.State; 349data.StateLeaveOnOpened = mco.State; 354data.StateEnterOnClosing = mco.State; 356data.StateLeaveOnClosing = mco.State; 361data.StateEnterOnClose = mco.State; 363data.StateLeaveOnClose = mco.State; 368data.StateEnterOnBeginClose = mco.State; 370data.StateLeaveOnBeginClose = mco.State; 376data.StateEnterOnClosed = mco.State; 378data.StateLeaveOnClosed = mco.State;