6 implementations of State
System.ServiceModel.Federation (3)
System\IdentityModel\Security\WrapperSecurityCommunicationObject.cs (1)
355
public CommunicationState
State
System\ServiceModel\Federation\WSTrustChannel.cs (1)
344
CommunicationState ICommunicationObject.
State
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
518
CommunicationState ICommunicationObject.
State
System.ServiceModel.Primitives (3)
netstandard.cs (3)
483
public System.ServiceModel.CommunicationState
State
{ get { return default; } }
517
System.ServiceModel.CommunicationState System.ServiceModel.ICommunicationObject.
State
{ get { return default; } }
1381
public System.ServiceModel.CommunicationState
State
{ get { return default; } }
68 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 new InvalidOperationException(SR.Format(SR.IRequestChannelMustBeCreated, requestChannel.
State
));
346
get { return RequestChannel.
State
; }
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
;