160 references to CommunicationState
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 (38)
ChannelBaseTests.4.0.0.cs (3)
245
Assert.True(
CommunicationState
.Closed == client.State,
249
Assert.True(
CommunicationState
.Closed == ((ICommunicationObject)serviceProxy).State,
253
Assert.True(
CommunicationState
.Closed == factory.State,
ClientBaseTests.4.0.0.cs (35)
167
Assert.Equal(
CommunicationState
.Created, client.State);
171
Assert.Equal(
CommunicationState
.Opened, client.State);
176
Assert.Equal(
CommunicationState
.Opened, client.State);
182
Assert.Equal(
CommunicationState
.Closed, client.State);
191
Assert.Equal(
CommunicationState
.Closed, client.State);
219
Assert.True(
CommunicationState
.Created == client.State,
222
Assert.True(
CommunicationState
.Created == factory.State,
241
Assert.True(
CommunicationState
.Opened == client.State,
244
Assert.True(
CommunicationState
.Opened == factory.State,
247
Assert.True(
CommunicationState
.Opened == ((ICommunicationObject)serviceProxy).State,
256
Assert.True(
CommunicationState
.Closed == client.State,
260
Assert.True(
CommunicationState
.Closed == ((ICommunicationObject)serviceProxy).State,
264
Assert.True(
CommunicationState
.Closed == factory.State,
294
Assert.True(
CommunicationState
.Created == client.State,
297
Assert.True(
CommunicationState
.Created == factory.State,
317
Assert.True(
CommunicationState
.Opened == client.State,
320
Assert.True(
CommunicationState
.Opened == factory.State,
323
Assert.True(
CommunicationState
.Opened == ((ICommunicationObject)serviceProxy).State,
333
Assert.True(
CommunicationState
.Closed == client.State,
337
Assert.True(
CommunicationState
.Closed == ((ICommunicationObject)serviceProxy).State,
341
Assert.True(
CommunicationState
.Closed == factory.State,
373
Assert.True(
CommunicationState
.Created == client.State,
376
Assert.True(
CommunicationState
.Created == factory.State,
396
Assert.True(
CommunicationState
.Opened == client.State,
399
Assert.True(
CommunicationState
.Opened == factory.State,
402
Assert.True(
CommunicationState
.Opened == ((ICommunicationObject)serviceProxy).State,
412
Assert.True(
CommunicationState
.Closed == client.State,
416
Assert.True(
CommunicationState
.Closed == ((ICommunicationObject)serviceProxy).State,
420
Assert.True(
CommunicationState
.Closed == factory.State,
462
Assert.True(
CommunicationState
.Closed == client.State,
466
Assert.True(
CommunicationState
.Closed == ((ICommunicationObject)serviceProxy).State,
470
Assert.True(
CommunicationState
.Closed == factory.State,
513
Assert.True(
CommunicationState
.Closed == client.State,
517
Assert.True(
CommunicationState
.Closed == ((ICommunicationObject)serviceProxy).State,
521
Assert.True(
CommunicationState
.Closed == factory.State,
Client.TypedClient.IntegrationTests (2)
TypedProxyDuplexTests.4.1.0.cs (2)
49
if (factory != null && factory.State !=
CommunicationState
.Closed)
84
if (factory != null && factory.State !=
CommunicationState
.Closed)
Contract.Service.IntegrationTests (13)
ServiceContractTests.4.0.0.cs (4)
311
Assert.True(factory.State ==
CommunicationState
.Opened,
365
Assert.True(proxyAsCommunicationObject.State ==
CommunicationState
.Opened,
420
Assert.True(factory.State ==
CommunicationState
.Closed,
469
Assert.True(proxyAsCommunicationObject.State ==
CommunicationState
.Closed,
ServiceContractTests.4.1.0.cs (9)
702
Assert.True(factory.State ==
CommunicationState
.Closed,
742
Assert.True(((ICommunicationObject)serviceProxy1).State ==
CommunicationState
.Closed,
744
Assert.True(((ICommunicationObject)serviceProxy2).State ==
CommunicationState
.Closed,
792
Assert.True(factory.State ==
CommunicationState
.Closed,
832
Assert.True(((ICommunicationObject)serviceProxy1).State ==
CommunicationState
.Closed,
834
Assert.True(((ICommunicationObject)serviceProxy2).State ==
CommunicationState
.Closed,
883
Assert.True(factory.State ==
CommunicationState
.Closed,
923
Assert.True(((ICommunicationObject)serviceProxy1).State ==
CommunicationState
.Closed,
925
Assert.True(((ICommunicationObject)serviceProxy2).State ==
CommunicationState
.Closed,
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 (1)
netstandard.cs (1)
107
[assembly: TypeForwardedTo(typeof(
CommunicationState
))]
System.ServiceModel.Federation (13)
System\IdentityModel\Security\WrapperSecurityCommunicationObject.cs (8)
124
case
CommunicationState
.Created:
127
case
CommunicationState
.Opening:
130
case
CommunicationState
.Opened:
133
case
CommunicationState
.Closing:
136
case
CommunicationState
.Closed:
139
case
CommunicationState
.Faulted:
203
public
CommunicationState
State
355
public
CommunicationState
State
System\ServiceModel\Federation\WSTrustChannel.cs (2)
31
if (requestChannel.State !=
CommunicationState
.Created)
344
CommunicationState
ICommunicationObject.State
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (3)
441
if (ChannelFactory != null && ChannelFactory.State ==
CommunicationState
.Opened)
450
if (ChannelFactory != null && ChannelFactory.State ==
CommunicationState
.Opened)
518
CommunicationState
ICommunicationObject.State
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\FramingChannels.cs (1)
325
if (State !=
CommunicationState
.Opening)
System.ServiceModel.Primitives (4)
netstandard.cs (4)
483
public System.ServiceModel.
CommunicationState
State { get { return default; } }
517
System.ServiceModel.
CommunicationState
System.ServiceModel.ICommunicationObject.State { get { return default; } }
797
System.ServiceModel.
CommunicationState
State { get; }
1381
public System.ServiceModel.
CommunicationState
State { get { return default; } }
System.ServiceModel.Primitives.Tests (63)
Channels\CommunicationObjectTest.cs (27)
103
Assert.True(mco.State ==
CommunicationState
.Closed,
188
Assert.True(data.StateAfterCreate ==
CommunicationState
.Created,
192
Assert.True(data.StateEnterOnOpening ==
CommunicationState
.Opening,
195
Assert.True(data.StateLeaveOnOpening ==
CommunicationState
.Opening,
199
Assert.True(data.StateEnterOnOpen ==
CommunicationState
.Opening,
202
Assert.True(data.StateLeaveOnOpen ==
CommunicationState
.Opening,
206
Assert.True(data.StateEnterOnOpened ==
CommunicationState
.Opening,
209
Assert.True(data.StateLeaveOnOpened ==
CommunicationState
.Opened,
213
Assert.True(data.StateEnterOnClosing ==
CommunicationState
.Closing,
216
Assert.True(data.StateLeaveOnClosing ==
CommunicationState
.Closing,
220
Assert.True(data.StateEnterOnClose ==
CommunicationState
.Closing,
223
Assert.True(data.StateLeaveOnClose ==
CommunicationState
.Closing,
227
Assert.True(data.StateEnterOnClosed ==
CommunicationState
.Closing,
230
Assert.True(data.StateLeaveOnClosed ==
CommunicationState
.Closed,
255
Assert.True(data.StateAfterCreate ==
CommunicationState
.Created,
259
Assert.True(data.StateEnterOnOpening ==
CommunicationState
.Opening,
262
Assert.True(data.StateLeaveOnOpening ==
CommunicationState
.Opening,
266
Assert.True(data.StateEnterOnBeginOpen ==
CommunicationState
.Opening,
269
Assert.True(data.StateLeaveOnBeginOpen ==
CommunicationState
.Opening,
273
Assert.True(data.StateEnterOnOpened ==
CommunicationState
.Opening,
276
Assert.True(data.StateLeaveOnOpened ==
CommunicationState
.Opened,
280
Assert.True(data.StateEnterOnClosing ==
CommunicationState
.Closing,
283
Assert.True(data.StateLeaveOnClosing ==
CommunicationState
.Closing,
287
Assert.True(data.StateEnterOnBeginClose ==
CommunicationState
.Closing,
290
Assert.True(data.StateLeaveOnBeginClose ==
CommunicationState
.Closing,
294
Assert.True(data.StateEnterOnClosed ==
CommunicationState
.Closing,
297
Assert.True(data.StateLeaveOnClosed ==
CommunicationState
.Closed,
Channels\CustomChannelTest.cs (6)
101
Assert.True(factory.State ==
CommunicationState
.Closed,
104
Assert.True(((ICommunicationObject)channel).State ==
CommunicationState
.Closed,
198
Assert.True(factory.State ==
CommunicationState
.Closed,
201
Assert.True(((ICommunicationObject)channel).State ==
CommunicationState
.Closed,
391
Assert.True(factory.State ==
CommunicationState
.Closed,
394
Assert.True(((ICommunicationObject)channel).State ==
CommunicationState
.Closed,
ServiceModel\ChannelFactoryTest.cs (14)
148
Assert.Equal(
CommunicationState
.Created, factory.State);
154
Assert.Equal(
CommunicationState
.Opened, factory.State);
162
Assert.Equal(
CommunicationState
.Closed, factory.State);
170
Assert.Equal(
CommunicationState
.Closed, factory.State);
174
Assert.Equal(
CommunicationState
.Closed, factory.State);
218
Assert.True(
CommunicationState
.Created == factory.State,
219
string.Format("factory.State - Expected: {0}, Actual: {1}.",
CommunicationState
.Created, factory.State));
222
Assert.True(
CommunicationState
.Opened == factory.State,
223
string.Format("factory.State - Expected: {0}, Actual: {1}.",
CommunicationState
.Opened, factory.State));
226
Assert.True(
CommunicationState
.Closed == factory.State,
227
string.Format("factory.State - Expected: {0}, Actual: {1}.",
CommunicationState
.Closed, factory.State));
231
if (factory != null && factory.State !=
CommunicationState
.Closed)
288
Assert.Equal(
CommunicationState
.Closed, factory.State);
317
Assert.Equal(
CommunicationState
.Closed, factory.State);
ServiceModel\ClientBaseTest.cs (10)
23
Assert.Equal(
CommunicationState
.Created, client.State);
25
Assert.Equal(
CommunicationState
.Opened, client.State);
27
Assert.Equal(
CommunicationState
.Closed, client.State);
125
Assert.Equal(
CommunicationState
.Closed, existingChannelFactory.State);
184
Assert.Equal(
CommunicationState
.Created, client.State);
186
Assert.Equal(
CommunicationState
.Opened, client.State);
188
Assert.Equal(
CommunicationState
.Closed, client.State);
202
Assert.Equal(
CommunicationState
.Created, client.State);
204
Assert.Equal(
CommunicationState
.Opened, client.State);
206
Assert.Equal(
CommunicationState
.Closed, client.State);
ServiceModel\DuplexClientBaseTest.cs (6)
24
Assert.Equal<
CommunicationState
>(
CommunicationState
.Created, duplexClientBase.State);
37
Assert.Equal<
CommunicationState
>(
CommunicationState
.Created, duplexClientBase.State);
39
Assert.Equal<
CommunicationState
>(
CommunicationState
.Closed, duplexClientBase.State);
UnitTests.Common (17)
MockCommunicationObject.cs (17)
387
public
CommunicationState
StateAfterCreate { get; set; }
388
public
CommunicationState
StateEnterOnOpening { get; set; }
389
public
CommunicationState
StateLeaveOnOpening { get; set; }
390
public
CommunicationState
StateEnterOnOpen { get; set; }
391
public
CommunicationState
StateLeaveOnOpen { get; set; }
392
public
CommunicationState
StateEnterOnBeginOpen { get; set; }
393
public
CommunicationState
StateLeaveOnBeginOpen { get; set; }
394
public
CommunicationState
StateEnterOnOpened { get; set; }
395
public
CommunicationState
StateLeaveOnOpened { get; set; }
397
public
CommunicationState
StateEnterOnClosing { get; set; }
398
public
CommunicationState
StateLeaveOnClosing { get; set; }
399
public
CommunicationState
StateEnterOnClose { get; set; }
400
public
CommunicationState
StateLeaveOnClose { get; set; }
401
public
CommunicationState
StateEnterOnBeginClose { get; set; }
402
public
CommunicationState
StateLeaveOnBeginClose { get; set; }
403
public
CommunicationState
StateEnterOnClosed { get; set; }
404
public
CommunicationState
StateLeaveOnClosed { get; set; }