9 implementations of State
System.ServiceModel.Federation (2)
System\ServiceModel\Federation\WSTrustChannel.cs (1)
344
CommunicationState ICommunicationObject.
State
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
536
CommunicationState ICommunicationObject.
State
System.ServiceModel.Primitives (7)
System\ServiceModel\Channels\CommunicationObject.cs (1)
104
public CommunicationState
State
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
538
CommunicationState ICommunicationObject.
State
System\ServiceModel\ClientBase.cs (2)
243
public CommunicationState
State
1038
CommunicationState ICommunicationObject.
State
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
1097
public CommunicationState
State
System\ServiceModel\Security\WrapperSecurityCommunicationObject.cs (2)
174
public CommunicationState
State
336
public CommunicationState
State
90 references to State
Binding.ReliableSession.IntegrationTests (2)
NetHttpBindingTests.cs (1)
245
Assert.Equal(CommunicationState.Faulted, ((ICommunicationObject)serviceProxy).
State
);
WSHttpBindingTests.cs (1)
245
Assert.Equal(CommunicationState.Faulted, ((ICommunicationObject)serviceProxy).
State
);
Binding.UDS.IntegrationTests (2)
ServiceHelper.cs (2)
100
if (comObj.
State
== System.ServiceModel.CommunicationState.Opened)
105
if (comObj.
State
!= System.ServiceModel.CommunicationState.Closed)
Client.ClientBase.IntegrationTests (18)
ChannelBaseTests.4.0.0.cs (2)
249
Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).
State
,
250
String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).
State
));
ClientBaseTests.4.0.0.cs (16)
247
Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).
State
,
248
String.Format("Expected proxy state to be Opened but actual was '{0}'", ((ICommunicationObject)serviceProxy).
State
));
260
Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).
State
,
261
String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).
State
));
323
Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).
State
,
324
String.Format("Expected proxy state to be Opened but actual was '{0}'", ((ICommunicationObject)serviceProxy).
State
));
337
Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).
State
,
338
String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).
State
));
402
Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).
State
,
403
String.Format("Expected proxy state to be Opened but actual was '{0}'", ((ICommunicationObject)serviceProxy).
State
));
416
Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).
State
,
417
String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).
State
));
466
Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).
State
,
467
String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).
State
));
517
Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).
State
,
518
String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).
State
));
Contract.Service.IntegrationTests (16)
ServiceContractTests.4.0.0.cs (4)
365
Assert.True(proxyAsCommunicationObject.
State
== CommunicationState.Opened,
366
String.Format("Expected proxy state 'Opened', actual was '{0}'", proxyAsCommunicationObject.
State
));
469
Assert.True(proxyAsCommunicationObject.
State
== CommunicationState.Closed,
470
String.Format("Expected proxy state 'Closed', actual was '{0}'", proxyAsCommunicationObject.
State
));
ServiceContractTests.4.1.0.cs (12)
742
Assert.True(((ICommunicationObject)serviceProxy1).
State
== CommunicationState.Closed,
743
String.Format("Expected channel 1 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy1).
State
));
744
Assert.True(((ICommunicationObject)serviceProxy2).
State
== CommunicationState.Closed,
745
String.Format("Expected channel 2 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy2).
State
));
832
Assert.True(((ICommunicationObject)serviceProxy1).
State
== CommunicationState.Closed,
833
String.Format("Expected channel 1 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy1).
State
));
834
Assert.True(((ICommunicationObject)serviceProxy2).
State
== CommunicationState.Closed,
835
String.Format("Expected channel 2 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy2).
State
));
923
Assert.True(((ICommunicationObject)serviceProxy1).
State
== CommunicationState.Closed,
924
String.Format("Expected channel 1 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy1).
State
));
925
Assert.True(((ICommunicationObject)serviceProxy2).
State
== CommunicationState.Closed,
926
String.Format("Expected channel 2 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy2).
State
));
Infrastructure.Common (2)
ServiceUtilHelper.cs (2)
431
if (comObj.
State
== CommunicationState.Opened)
436
if (comObj.
State
!= CommunicationState.Closed)
ScenarioTests.Common.Tests (2)
ScenarioTestHelpers.cs (2)
195
if (comObj.
State
== CommunicationState.Opened)
200
if (comObj.
State
!= CommunicationState.Closed)
System.ServiceModel.Federation (3)
System\ServiceModel\Federation\WSTrustChannel.cs (3)
31
if (requestChannel.
State
!= CommunicationState.Created)
32
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(LogHelper.FormatInvariant(SR.GetResourceString(SR.IRequestChannelMustBeCreated), requestChannel.
State
)));
346
get { return RequestChannel.
State
; }
System.ServiceModel.Primitives (22)
System\ServiceModel\Channels\ChannelParameterCollection.cs (2)
76
CommunicationState state = channel.
State
;
111
CommunicationState state = channel.
State
;
System\ServiceModel\Channels\ReliableChannelBinder.cs (7)
200
CommunicationState channelState = channel.
State
;
1069
&& (CurrentChannel.
State
== CommunicationState.Created))
1263
if (CurrentChannel.
State
!= CommunicationState.Faulted)
1332
if (CurrentChannel.
State
== CommunicationState.Faulted)
1372
if (channel.
State
== CommunicationState.Opened)
2073
if (lastIteration || channel.
State
!= CommunicationState.Opened)
2148
if (lastIteration || channel.
State
!= CommunicationState.Opened)
System\ServiceModel\Channels\ServiceChannel.cs (3)
62
_openBinder = (binder.Channel.
State
== CommunicationState.Created);
2509
if (!_isTimerCancelled && _binder.Channel.
State
!= CommunicationState.Faulted && _binder.Channel.
State
!= CommunicationState.Closed)
System\ServiceModel\ClientBase.cs (2)
250
return channel.
State
;
1040
get { return ((ICommunicationObject)_channel).
State
; }
System\ServiceModel\Dispatcher\ChannelHandler.cs (2)
123
get { return Binder.Channel.
State
== CommunicationState.Opened; }
160
if (Binder.Channel.
State
== CommunicationState.Created)
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (3)
296
if (_channel.
State
== CommunicationState.Faulted)
412
if (_channel.
State
== CommunicationState.Faulted)
1099
get { return _innerChannel.
State
; }
System\ServiceModel\Dispatcher\ListenerHandler.cs (3)
121
if (_acceptedNull || (listener.
State
== CommunicationState.Faulted))
144
if (channel.
State
!= CommunicationState.Closing && channel.
State
!= CommunicationState.Closed)
System.ServiceModel.Primitives.Tests (6)
Channels\CustomChannelTest.cs (6)
104
Assert.True(((ICommunicationObject)channel).
State
== CommunicationState.Closed,
105
String.Format("Expected channel's final state to be Closed but was '{0}'", ((ICommunicationObject)channel).
State
));
201
Assert.True(((ICommunicationObject)channel).
State
== CommunicationState.Closed,
202
String.Format("Expected channel's final state to be Closed but was '{0}'", ((ICommunicationObject)channel).
State
));
394
Assert.True(((ICommunicationObject)channel).
State
== CommunicationState.Closed,
395
String.Format("Expected channel's final state to be Closed but was '{0}'", ((ICommunicationObject)channel).
State
));
UnitTests.Common (17)
MockCommunicationObject.cs (17)
321
data.StateAfterCreate = mco.
State
;
325
data.StateEnterOnOpening = mco.
State
;
327
data.StateLeaveOnOpening = mco.
State
;
332
data.StateEnterOnOpen = mco.
State
;
334
data.StateLeaveOnOpen = mco.
State
;
339
data.StateEnterOnBeginOpen = mco.
State
;
341
data.StateLeaveOnBeginOpen = mco.
State
;
347
data.StateEnterOnOpened = mco.
State
;
349
data.StateLeaveOnOpened = mco.
State
;
354
data.StateEnterOnClosing = mco.
State
;
356
data.StateLeaveOnClosing = mco.
State
;
361
data.StateEnterOnClose = mco.
State
;
363
data.StateLeaveOnClose = mco.
State
;
368
data.StateEnterOnBeginClose = mco.
State
;
370
data.StateLeaveOnBeginClose = mco.
State
;
376
data.StateEnterOnClosed = mco.
State
;
378
data.StateLeaveOnClosed = mco.
State
;