6 interfaces inheriting from ICommunicationObject
System.ServiceModel.Primitives (5)
UnitTests.Common (1)
6 implementations of ICommunicationObject
System.ServiceModel.Federation (2)
System.ServiceModel.Primitives (4)
738 references to ICommunicationObject
Binding.Custom.IntegrationTests (6)
Binding.Http.IntegrationTests (28)
Binding.ReliableSession.IntegrationTests (29)
Binding.Tcp.IntegrationTests (14)
Binding.UDS.IntegrationTests (2)
Binding.WS.FederationHttp.IntegrationTests (6)
Client.ChannelLayer.IntegrationTests (13)
Client.ClientBase.IntegrationTests (127)
ChannelBaseTests.4.0.0.cs (21)
45((ICommunicationObject)client).Close();
46((ICommunicationObject)serviceProxy).Close();
51ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
77ClientBaseTestHelpers.RegisterForEvents((ICommunicationObject)serviceProxy, proxyEventsCalled);
82((ICommunicationObject)client).Close();
103ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
129ClientBaseTestHelpers.RegisterForEvents((ICommunicationObject)serviceProxy, proxyEventsCalled);
135ar = ((ICommunicationObject)client).BeginClose(null, null);
136((ICommunicationObject)client).EndClose(ar);
157ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
184ClientBaseTestHelpers.RegisterForEvents((ICommunicationObject)serviceProxy, proxyEventsCalled, deregister: true);
189((ICommunicationObject)client).Close();
208ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
233((ICommunicationObject)client).Open();
249Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
250String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State));
262ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, client, factory);
ClientBaseTests.4.0.0.cs (74)
46((ICommunicationObject)client).Close();
47((ICommunicationObject)serviceProxy).Close();
52ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
93((ICommunicationObject)client).Close();
94((ICommunicationObject)serviceProxy).Close();
99ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
141((ICommunicationObject)client).Close();
142((ICommunicationObject)serviceProxy).Close();
147ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
179((ICommunicationObject)client).Close();
180((ICommunicationObject)serviceProxy).Close();
195ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
235((ICommunicationObject)client).Open();
247Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).State,
248String.Format("Expected proxy state to be Opened but actual was '{0}'", ((ICommunicationObject)serviceProxy).State));
252((ICommunicationObject)client).Close();
260Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
261String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State));
270ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, client, factory);
310IAsyncResult ar = ((ICommunicationObject)client).BeginOpen(null, null);
311((ICommunicationObject)client).EndOpen(ar);
323Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).State,
324String.Format("Expected proxy state to be Opened but actual was '{0}'", ((ICommunicationObject)serviceProxy).State));
328ar = ((ICommunicationObject)client).BeginClose(null, null);
329((ICommunicationObject)client).EndClose(ar);
337Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
338String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State));
347ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, client, factory);
389IAsyncResult ar = ((ICommunicationObject)client).BeginOpen(timeout, null, null);
390((ICommunicationObject)client).EndOpen(ar);
402Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).State,
403String.Format("Expected proxy state to be Opened but actual was '{0}'", ((ICommunicationObject)serviceProxy).State));
407ar = ((ICommunicationObject)client).BeginClose(timeout, null, null);
408((ICommunicationObject)client).EndClose(ar);
416Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
417String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State));
426ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, client, factory);
451((ICommunicationObject)client).Open();
466Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
467String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State));
476ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, client, factory);
501((ICommunicationObject)client).Open();
517Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
518String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State));
527ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, client, factory);
553ClientBaseTestHelpers.RegisterForEvents((ICommunicationObject)proxy, proxyEventsCalled);
557((ICommunicationObject)client).Close();
577ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy, (ICommunicationObject)client);
604ClientBaseTestHelpers.RegisterForEvents((ICommunicationObject)proxy, proxyEventsCalled);
610IAsyncResult ar = ((ICommunicationObject)client).BeginClose(null, null);
611((ICommunicationObject)client).EndClose(ar);
631ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy, (ICommunicationObject)client);
657ClientBaseTestHelpers.RegisterForEvents((ICommunicationObject)proxy, proxyEventsCalled, deregister:true);
661((ICommunicationObject)client).Close();
680ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy, (ICommunicationObject)client);
711((ICommunicationObject)client).Close();
712((ICommunicationObject)serviceProxy).Close();
717ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
746((ICommunicationObject)client).Close();
747((ICommunicationObject)serviceProxy).Close();
752ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
802((ICommunicationObject)client).Close();
803((ICommunicationObject)serviceProxy).Close();
808ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
Client.ExpectedExceptions.IntegrationTests (29)
ExpectedExceptionTests.4.1.0.cs (16)
45ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
76((ICommunicationObject)setupHostServiceProxy).Close();
82ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)setupHostServiceProxy, setupHostFactory);
124ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
143ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
177ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
215ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
265ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
317ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
369ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
416ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
463ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
514((ICommunicationObject)serviceProxy).Opening += (s, e) =>
565((ICommunicationObject)serviceProxy).Abort();
636((ICommunicationObject)serviceProxy).Close();
642ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Client.TypedClient.IntegrationTests (12)
Contract.Data.IntegrationTests (8)
Contract.Fault.IntegrationTests (14)
Contract.Message.IntegrationTests (9)
Contract.Service.IntegrationTests (81)
ServiceContractTests.4.0.0.cs (23)
53((ICommunicationObject)serviceProxy).Close();
59ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
101((ICommunicationObject)serviceProxy).Close();
107ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
147((ICommunicationObject)serviceProxy).Close();
153ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
195((ICommunicationObject)serviceProxy).Close();
201ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
241((ICommunicationObject)serviceProxy).Close();
247ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
279((ICommunicationObject)serviceProxy).Close();
285ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
318((ICommunicationObject)serviceProxy).Close();
324ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
360ICommunicationObject proxyAsCommunicationObject = (ICommunicationObject)serviceProxy;
371((ICommunicationObject)serviceProxy).Close();
377ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
413((ICommunicationObject)serviceProxy).Close(); // force proxy closed before close factory
428ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
464ICommunicationObject proxyAsCommunicationObject = (ICommunicationObject)serviceProxy;
478ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
ServiceContractTests.4.1.0.cs (56)
47((ICommunicationObject)serviceProxy).Close();
53ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
83((ICommunicationObject)serviceProxy).Close();
89ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
118((ICommunicationObject)serviceProxy).Close();
124ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
155((ICommunicationObject)serviceProxy).Close();
161ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
192((ICommunicationObject)serviceProxy).Close();
198ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
261((ICommunicationObject)serviceProxy).Abort();
270((ICommunicationObject)serviceProxy).Abort();
284((ICommunicationObject)serviceProxy).Close();
290ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
340((ICommunicationObject)serviceProxy).Close();
346ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
377((ICommunicationObject)serviceProxy).Close();
383ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
413((ICommunicationObject)serviceProxy).Close();
419ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
448((ICommunicationObject)serviceProxy).Close();
454ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
485((ICommunicationObject)serviceProxy).Close();
491ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
522((ICommunicationObject)serviceProxy).Close();
528ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
559((ICommunicationObject)serviceProxy).Close();
565ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
596((ICommunicationObject)serviceProxy).Close();
602ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
660((ICommunicationObject)serviceProxy).Close();
666ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
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));
748((ICommunicationObject)serviceProxy1).Abort();
749((ICommunicationObject)serviceProxy2).Abort();
754ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1,
755(ICommunicationObject)serviceProxy2,
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));
838((ICommunicationObject)serviceProxy1).Abort();
839((ICommunicationObject)serviceProxy2).Abort();
844ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1,
845(ICommunicationObject)serviceProxy2,
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));
929((ICommunicationObject)serviceProxy1).Abort();
930((ICommunicationObject)serviceProxy2).Abort();
935ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1,
936(ICommunicationObject)serviceProxy2,
Contract.XmlSerializer.IntegrationTests (25)
dotnet-svcutil.xmlserializer.IntegrationTests (25)
Encoding.Encoders.IntegrationTests (9)
Encoding.MessageVersion.IntegrationTests (14)
Extensibility.MessageEncoder.IntegrationTests (4)
Extensibility.MessageInterceptor.IntegrationTests (2)
Extensibility.WebSockets.IntegrationTests (29)
WebSocketTests.4.1.0.cs (29)
102((ICommunicationObject)client).Close();
108ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
170((ICommunicationObject)client).Close();
176ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
238((ICommunicationObject)client).Close();
244ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
334((ICommunicationObject)client).Close();
340ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
405((ICommunicationObject)client).Close();
411ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
471((ICommunicationObject)client).Close();
477ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
525((ICommunicationObject)client).Close();
531ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
579((ICommunicationObject)client).Close();
585ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
634((ICommunicationObject)client).Close();
640ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
691((ICommunicationObject)client).Close();
697ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
731((ICommunicationObject)duplexProxy).Close();
737ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)duplexProxy, factory);
772((ICommunicationObject)duplexProxy).Close();
777ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)duplexProxy, factory);
816((ICommunicationObject)proxy).Close();
821ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy, factory);
847((ICommunicationObject)client).Open();
854((ICommunicationObject)client).Close();
860ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
Infrastructure.Common (2)
ScenarioTests.Common.Tests (4)
Security.TransportSecurity.IntegrationTests (99)
System.ServiceModel.Federation (34)
System.ServiceModel.Federation.Tests (1)
System.ServiceModel.NetFramingBase (7)
System.ServiceModel.Primitives (96)
System\ServiceModel\ClientBase.cs (56)
285((ICommunicationObject)this).Open(GetChannelFactory().InternalOpenTimeout);
338((ICommunicationObject)this).Close(GetChannelFactory().InternalCloseTimeout);
477void ICommunicationObject.Open(TimeSpan timeout)
488void ICommunicationObject.Close(TimeSpan timeout)
534event EventHandler ICommunicationObject.Closed
546event EventHandler ICommunicationObject.Closing
558event EventHandler ICommunicationObject.Faulted
570event EventHandler ICommunicationObject.Opened
582event EventHandler ICommunicationObject.Opening
594IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state)
596return ((ICommunicationObject)this).BeginClose(GetChannelFactory().InternalCloseTimeout, callback, state);
599IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state)
604void ICommunicationObject.EndClose(IAsyncResult result)
609IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state)
611return ((ICommunicationObject)this).BeginOpen(GetChannelFactory().InternalOpenTimeout, callback, state);
614IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
619void ICommunicationObject.EndOpen(IAsyncResult result)
1038CommunicationState ICommunicationObject.State
1040get { return ((ICommunicationObject)_channel).State; }
1043event EventHandler ICommunicationObject.Closed
1045add { ((ICommunicationObject)_channel).Closed += value; }
1046remove { ((ICommunicationObject)_channel).Closed -= value; }
1049event EventHandler ICommunicationObject.Closing
1051add { ((ICommunicationObject)_channel).Closing += value; }
1052remove { ((ICommunicationObject)_channel).Closing -= value; }
1055event EventHandler ICommunicationObject.Faulted
1057add { ((ICommunicationObject)_channel).Faulted += value; }
1058remove { ((ICommunicationObject)_channel).Faulted -= value; }
1061event EventHandler ICommunicationObject.Opened
1063add { ((ICommunicationObject)_channel).Opened += value; }
1064remove { ((ICommunicationObject)_channel).Opened -= value; }
1067event EventHandler ICommunicationObject.Opening
1069add { ((ICommunicationObject)_channel).Opening += value; }
1070remove { ((ICommunicationObject)_channel).Opening -= value; }
1073void ICommunicationObject.Abort()
1075((ICommunicationObject)_channel).Abort();
1078void ICommunicationObject.Close()
1080((ICommunicationObject)_channel).Close();
1083void ICommunicationObject.Close(TimeSpan timeout)
1085((ICommunicationObject)_channel).Close(timeout);
1088IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state)
1090return ((ICommunicationObject)_channel).BeginClose(callback, state);
1093IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state)
1095return ((ICommunicationObject)_channel).BeginClose(timeout, callback, state);
1098void ICommunicationObject.EndClose(IAsyncResult result)
1100((ICommunicationObject)_channel).EndClose(result);
1103void ICommunicationObject.Open()
1105((ICommunicationObject)_channel).Open();
1108void ICommunicationObject.Open(TimeSpan timeout)
1110((ICommunicationObject)_channel).Open(timeout);
1113IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state)
1115return ((ICommunicationObject)_channel).BeginOpen(callback, state);
1118IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
1120return ((ICommunicationObject)_channel).BeginOpen(timeout, callback, state);
1123void ICommunicationObject.EndOpen(IAsyncResult result)
1125((ICommunicationObject)_channel).EndOpen(result);
System.ServiceModel.Primitives.Tests (9)