9 implementations of State
System.ServiceModel.Federation (2)
System\ServiceModel\Federation\WSTrustChannel.cs (1)
344CommunicationState ICommunicationObject.State
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
536CommunicationState ICommunicationObject.State
System.ServiceModel.Primitives (7)
System\ServiceModel\Channels\CommunicationObject.cs (1)
104public CommunicationState State
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
538CommunicationState ICommunicationObject.State
System\ServiceModel\ClientBase.cs (2)
243public CommunicationState State 1038CommunicationState ICommunicationObject.State
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
1097public CommunicationState State
System\ServiceModel\Security\WrapperSecurityCommunicationObject.cs (2)
174public CommunicationState State 336public CommunicationState State
90 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 DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(LogHelper.FormatInvariant(SR.GetResourceString(SR.IRequestChannelMustBeCreated), requestChannel.State))); 346get { return RequestChannel.State; }
System.ServiceModel.Primitives (22)
System\ServiceModel\Channels\ChannelParameterCollection.cs (2)
76CommunicationState state = channel.State; 111CommunicationState state = channel.State;
System\ServiceModel\Channels\ReliableChannelBinder.cs (7)
200CommunicationState channelState = channel.State; 1069&& (CurrentChannel.State == CommunicationState.Created)) 1263if (CurrentChannel.State != CommunicationState.Faulted) 1332if (CurrentChannel.State == CommunicationState.Faulted) 1372if (channel.State == CommunicationState.Opened) 2073if (lastIteration || channel.State != CommunicationState.Opened) 2148if (lastIteration || channel.State != CommunicationState.Opened)
System\ServiceModel\Channels\ServiceChannel.cs (3)
62_openBinder = (binder.Channel.State == CommunicationState.Created); 2509if (!_isTimerCancelled && _binder.Channel.State != CommunicationState.Faulted && _binder.Channel.State != CommunicationState.Closed)
System\ServiceModel\ClientBase.cs (2)
250return channel.State; 1040get { return ((ICommunicationObject)_channel).State; }
System\ServiceModel\Dispatcher\ChannelHandler.cs (2)
123get { return Binder.Channel.State == CommunicationState.Opened; } 160if (Binder.Channel.State == CommunicationState.Created)
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (3)
296if (_channel.State == CommunicationState.Faulted) 412if (_channel.State == CommunicationState.Faulted) 1099get { return _innerChannel.State; }
System\ServiceModel\Dispatcher\ListenerHandler.cs (3)
121if (_acceptedNull || (listener.State == CommunicationState.Faulted)) 144if (channel.State != CommunicationState.Closing && channel.State != CommunicationState.Closed)
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;