396 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.Federation (5)
System\ServiceModel\Federation\WSTrustChannel.cs (2)
31
if (requestChannel.State !=
CommunicationState
.Created)
344
CommunicationState
ICommunicationObject.State
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (3)
456
if (ChannelFactory != null && ChannelFactory.State ==
CommunicationState
.Opened)
465
if (ChannelFactory != null && ChannelFactory.State ==
CommunicationState
.Opened)
536
CommunicationState
ICommunicationObject.State
System.ServiceModel.Http (2)
System\ServiceModel\Channels\HttpChannelFactory.cs (2)
806
if (State ==
CommunicationState
.Created)
1012
if (_channel.State !=
CommunicationState
.Opened)
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\FramingChannels.cs (1)
325
if (State !=
CommunicationState
.Opening)
System.ServiceModel.Primitives (247)
System\ServiceModel\ChannelFactory.cs (10)
37
if (State ==
CommunicationState
.Created || State ==
CommunicationState
.Opening)
101
if (State !=
CommunicationState
.Opened)
105
if (State !=
CommunicationState
.Opened)
150
if (State ==
CommunicationState
.Opened)
155
if (State !=
CommunicationState
.Closed)
172
Fx.Assert(State ==
CommunicationState
.Created || State ==
CommunicationState
.Opening, "");
181
Fx.Assert(State ==
CommunicationState
.Created || State ==
CommunicationState
.Opening, "");
System\ServiceModel\Channels\ChannelFactoryBase.cs (1)
161
if (State !=
CommunicationState
.Opened)
System\ServiceModel\Channels\ChannelParameterCollection.cs (14)
76
CommunicationState
state = channel.State;
81
case
CommunicationState
.Created:
84
case
CommunicationState
.Opening:
85
case
CommunicationState
.Opened:
86
case
CommunicationState
.Closing:
87
case
CommunicationState
.Closed:
88
case
CommunicationState
.Faulted:
111
CommunicationState
state = channel.State;
116
case
CommunicationState
.Created:
121
case
CommunicationState
.Opening:
122
case
CommunicationState
.Opened:
123
case
CommunicationState
.Closing:
124
case
CommunicationState
.Closed:
125
case
CommunicationState
.Faulted:
System\ServiceModel\Channels\ChannelReliableSession.cs (6)
87
if ((_binder.State ==
CommunicationState
.Opened)
164
Channel.State ==
CommunicationState
.Faulted ||
165
Channel.State ==
CommunicationState
.Closed)
196
Channel.State ==
CommunicationState
.Faulted ||
197
Channel.State ==
CommunicationState
.Closed)
238
if ((_binder.State ==
CommunicationState
.Opened)
System\ServiceModel\Channels\ClientReliableChannelBinder.cs (6)
202
CommunicationState
currentState = State;
205
if ((currentState ==
CommunicationState
.Created)
206
|| (currentState ==
CommunicationState
.Opening)
207
|| (currentState ==
CommunicationState
.Opened))
406
if (State ==
CommunicationState
.Created)
411
if (State ==
CommunicationState
.Opening)
System\ServiceModel\Channels\ClientReliableDuplexSessionChannel.cs (19)
276
if (Aborted || State ==
CommunicationState
.Faulted)
318
else if (State ==
CommunicationState
.Closing)
654
if (State ==
CommunicationState
.Closing
655
|| State ==
CommunicationState
.Closed
656
|| State ==
CommunicationState
.Faulted)
685
if (State ==
CommunicationState
.Opening ||
686
State ==
CommunicationState
.Opened ||
687
State ==
CommunicationState
.Closing)
702
if (State ==
CommunicationState
.Opening ||
703
State ==
CommunicationState
.Opened ||
704
State ==
CommunicationState
.Closing)
757
if ((State !=
CommunicationState
.Opened)
947
if (!terminated && (Binder.State ==
CommunicationState
.Opened))
1038
if (State ==
CommunicationState
.Opened)
1040
else if (State ==
CommunicationState
.Faulted)
1130
if ((State ==
CommunicationState
.Opened || State ==
CommunicationState
.Closing) &&
1186
if ((channel.State ==
CommunicationState
.Opened || channel.State ==
CommunicationState
.Closing) &&
System\ServiceModel\Channels\CommunicationObject.cs (81)
26
private
CommunicationState
_state;
43
_state =
CommunicationState
.Created;
101
get { return _state ==
CommunicationState
.Closed; }
104
public
CommunicationState
State
159
if (Aborted || _state ==
CommunicationState
.Closed)
166
_state =
CommunicationState
.Closing;
237
CommunicationState
originalState;
241
if (originalState !=
CommunicationState
.Closed)
243
_state =
CommunicationState
.Closing;
251
case
CommunicationState
.Created:
252
case
CommunicationState
.Opening:
253
case
CommunicationState
.Faulted:
255
if (originalState ==
CommunicationState
.Faulted)
261
case
CommunicationState
.Opened:
294
case
CommunicationState
.Closing:
295
case
CommunicationState
.Closed:
376
case
CommunicationState
.Created:
379
case
CommunicationState
.Opening:
382
case
CommunicationState
.Opened:
385
case
CommunicationState
.Closing:
388
case
CommunicationState
.Closed:
391
case
CommunicationState
.Faulted:
413
if (_state ==
CommunicationState
.Closed || _state ==
CommunicationState
.Closing)
418
if (_state ==
CommunicationState
.Faulted)
423
_state =
CommunicationState
.Faulted;
450
CommunicationState
currentState = _state;
452
Fx.Assert(currentState ==
CommunicationState
.Closing || currentState ==
CommunicationState
.Closed || currentState ==
CommunicationState
.Faulted,
478
case
CommunicationState
.Closing:
479
case
CommunicationState
.Closed:
482
case
CommunicationState
.Faulted:
517
_state =
CommunicationState
.Opening;
593
_state =
CommunicationState
.Closed;
687
if (Aborted || _state !=
CommunicationState
.Opening)
692
_state =
CommunicationState
.Opened;
745
case
CommunicationState
.Created:
748
case
CommunicationState
.Opening:
751
case
CommunicationState
.Opened:
754
case
CommunicationState
.Closing:
757
case
CommunicationState
.Closed:
760
case
CommunicationState
.Faulted:
794
case
CommunicationState
.Created:
797
case
CommunicationState
.Opening:
800
case
CommunicationState
.Opened:
803
case
CommunicationState
.Closing:
806
case
CommunicationState
.Closed:
809
case
CommunicationState
.Faulted:
828
case
CommunicationState
.Created:
831
case
CommunicationState
.Opening:
834
case
CommunicationState
.Opened:
837
case
CommunicationState
.Closing:
840
case
CommunicationState
.Closed:
843
case
CommunicationState
.Faulted:
857
case
CommunicationState
.Created:
860
case
CommunicationState
.Opening:
863
case
CommunicationState
.Opened:
866
case
CommunicationState
.Closing:
869
case
CommunicationState
.Closed:
872
case
CommunicationState
.Faulted:
886
case
CommunicationState
.Created:
889
case
CommunicationState
.Opening:
892
case
CommunicationState
.Opened:
895
case
CommunicationState
.Closing:
898
case
CommunicationState
.Closed:
901
case
CommunicationState
.Faulted:
915
case
CommunicationState
.Created:
918
case
CommunicationState
.Opening:
921
case
CommunicationState
.Opened:
924
case
CommunicationState
.Closing:
927
case
CommunicationState
.Closed:
930
case
CommunicationState
.Faulted:
940
if (_state ==
CommunicationState
.Created || _state ==
CommunicationState
.Opening)
952
case
CommunicationState
.Created:
955
case
CommunicationState
.Opening:
958
case
CommunicationState
.Opened:
961
case
CommunicationState
.Closing:
964
case
CommunicationState
.Closed:
967
case
CommunicationState
.Faulted:
System\ServiceModel\Channels\IReliableChannelBinder.cs (1)
19
CommunicationState
State { get; }
System\ServiceModel\Channels\ReliableChannelBinder.cs (40)
111
public
CommunicationState
State { get; private set; } =
CommunicationState
.Created;
143
if (State ==
CommunicationState
.Closed)
148
State =
CommunicationState
.Closing;
181
if ((State ==
CommunicationState
.Closing)
182
|| (State ==
CommunicationState
.Closed))
187
if (State ==
CommunicationState
.Opened)
189
State =
CommunicationState
.Closing;
200
CommunicationState
channelState = channel.State;
202
if ((channelState ==
CommunicationState
.Created)
203
|| (channelState ==
CommunicationState
.Opening)
204
|| (channelState ==
CommunicationState
.Faulted))
208
else if ((channelState ==
CommunicationState
.Closing)
209
|| (channelState ==
CommunicationState
.Closed))
323
if (State ==
CommunicationState
.Created)
328
if ((State ==
CommunicationState
.Faulted)
329
|| (State ==
CommunicationState
.Closed))
334
State =
CommunicationState
.Faulted;
369
if (State ==
CommunicationState
.Faulted)
373
else if ((State ==
CommunicationState
.Closing)
374
|| (State ==
CommunicationState
.Closed))
495
if (State ==
CommunicationState
.Opening)
497
State =
CommunicationState
.Opened;
506
if (State !=
CommunicationState
.Created)
510
if ((State ==
CommunicationState
.Opening)
511
|| (State ==
CommunicationState
.Opened))
534
State =
CommunicationState
.Opening;
673
if (State ==
CommunicationState
.Created)
678
if (State ==
CommunicationState
.Opening)
683
if (State ==
CommunicationState
.Opened)
716
if ((State !=
CommunicationState
.Closing)
717
&& (State !=
CommunicationState
.Closed)
718
&& (State !=
CommunicationState
.Faulted))
723
State =
CommunicationState
.Closed;
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\ReliableMessagingHelpers.cs (1)
889
|| (binder.State !=
CommunicationState
.Opened)
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (8)
213
if (State ==
CommunicationState
.Opening ||
214
State ==
CommunicationState
.Opened ||
215
State ==
CommunicationState
.Closing)
230
if (State ==
CommunicationState
.Opening ||
231
State ==
CommunicationState
.Opened ||
232
State ==
CommunicationState
.Closing)
603
if (State ==
CommunicationState
.Faulted)
830
if (!Connection.Closed && (Binder.State ==
CommunicationState
.Opened))
System\ServiceModel\Channels\ReliableRequestSessionChannel.cs (7)
144
if (State ==
CommunicationState
.Faulted)
222
if (State ==
CommunicationState
.Opening ||
223
State ==
CommunicationState
.Opened ||
224
State ==
CommunicationState
.Closing)
239
if (State ==
CommunicationState
.Opening ||
240
State ==
CommunicationState
.Opened ||
241
State ==
CommunicationState
.Closing)
System\ServiceModel\Channels\RequestContextBase.cs (12)
13
private
CommunicationState
_state =
CommunicationState
.Opened;
28
_state =
CommunicationState
.Opened;
84
if (_state ==
CommunicationState
.Closed)
89
_state =
CommunicationState
.Closing;
100
_state =
CommunicationState
.Closed;
119
if (_state !=
CommunicationState
.Opened)
129
_state =
CommunicationState
.Closing;
143
_state =
CommunicationState
.Closed;
182
if (_state ==
CommunicationState
.Closed || _state ==
CommunicationState
.Closing)
208
if ((_state !=
CommunicationState
.Opened) || ReplyInitiated)
System\ServiceModel\Channels\ServiceChannel.cs (8)
62
_openBinder = (binder.Channel.State ==
CommunicationState
.Created);
543
if ((State ==
CommunicationState
.Created) && !operation.IsInitiating)
835
if (State ==
CommunicationState
.Opened)
1146
if (State ==
CommunicationState
.Opening)
1613
if (State ==
CommunicationState
.Opened)
1618
if (State !=
CommunicationState
.Closed)
2509
if (!_isTimerCancelled && _binder.Channel.State !=
CommunicationState
.Faulted && _binder.Channel.State !=
CommunicationState
.Closed)
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
538
CommunicationState
ICommunicationObject.State
System\ServiceModel\ClientBase.cs (7)
243
public
CommunicationState
State
261
return
CommunicationState
.Created;
457
if (State ==
CommunicationState
.Opened)
462
if (State !=
CommunicationState
.Closed)
638
if (factoryRef.ChannelFactory.State !=
CommunicationState
.Opened)
727
Fx.Assert(_channelFactoryRef.ChannelFactory.State ==
CommunicationState
.Opened,
1038
CommunicationState
ICommunicationObject.State
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (2)
348
if (State ==
CommunicationState
.Opened)
359
if (State ==
CommunicationState
.Opened)
System\ServiceModel\Dispatcher\ChannelHandler.cs (3)
108
if (_listener.State ==
CommunicationState
.Opened)
123
get { return Binder.Channel.State ==
CommunicationState
.Opened; }
160
if (Binder.Channel.State ==
CommunicationState
.Created)
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (4)
296
if (_channel.State ==
CommunicationState
.Faulted)
412
if (_channel.State ==
CommunicationState
.Faulted)
1097
public
CommunicationState
State
1264
if (!_closeState.TryBackgroundClose() || State !=
CommunicationState
.Opened)
System\ServiceModel\Dispatcher\InstanceBehavior.cs (2)
55
if (rpc.InstanceContext.State ==
CommunicationState
.Created)
59
if (rpc.InstanceContext.State ==
CommunicationState
.Created)
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\ICommunicationObject.cs (1)
12
CommunicationState
State { get; }
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (2)
247
CommunicationState
state = CommunicationObject.State;
248
if (state ==
CommunicationState
.Created)
System\ServiceModel\Security\SecuritySessionClientSettings.cs (6)
1113
if (State !=
CommunicationState
.Closed)
1172
if (State !=
CommunicationState
.Closed)
1288
if (State ==
CommunicationState
.Closed)
1659
if (State ==
CommunicationState
.Closed || State ==
CommunicationState
.Faulted || IsInputClosed)
1799
if (_channel.State !=
CommunicationState
.Closed)
System\ServiceModel\Security\WrapperSecurityCommunicationObject.cs (2)
174
public
CommunicationState
State
336
public
CommunicationState
State
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; }