6 interfaces inheriting from ICommunicationObject
System.ServiceModel.Primitives (5)
UnitTests.Common (1)
7 implementations of ICommunicationObject
System.ServiceModel.Federation (3)
System.ServiceModel.Primitives (4)
745 references to ICommunicationObject
Binding.Custom.IntegrationTests (6)
Binding.Http.IntegrationTests (28)
Binding.ReliableSession.IntegrationTests (29)
Binding.Tcp.IntegrationTests (18)
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 (31)
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);
216ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
266ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
318ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
371ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
419ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
467ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
518((ICommunicationObject)serviceProxy).Opening += (s, e) =>
569((ICommunicationObject)serviceProxy).Abort();
640((ICommunicationObject)serviceProxy).Close();
646ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Client.TypedClient.IntegrationTests (14)
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.WebSockets.IntegrationTests (29)
WebSocketTests.4.1.0.cs (29)
103((ICommunicationObject)client).Close();
109ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
171((ICommunicationObject)client).Close();
177ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
239((ICommunicationObject)client).Close();
245ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
336((ICommunicationObject)client).Close();
342ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
408((ICommunicationObject)client).Close();
414ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
475((ICommunicationObject)client).Close();
481ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
530((ICommunicationObject)client).Close();
536ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
585((ICommunicationObject)client).Close();
591ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
641((ICommunicationObject)client).Close();
647ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
699((ICommunicationObject)client).Close();
705ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
740((ICommunicationObject)duplexProxy).Close();
746ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)duplexProxy, factory);
782((ICommunicationObject)duplexProxy).Close();
787ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)duplexProxy, factory);
827((ICommunicationObject)proxy).Close();
832ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy, factory);
859((ICommunicationObject)client).Open();
866((ICommunicationObject)client).Close();
872ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory);
Infrastructure.Common (2)
ScenarioTests.Common.Tests (4)
Security.TransportSecurity.IntegrationTests (99)
System.ServiceModel (1)
System.ServiceModel.Federation (34)
System.ServiceModel.Federation.Tests (1)
System.ServiceModel.NetFramingBase (7)
System.ServiceModel.Primitives (96)
System\ServiceModel\ClientBase.cs (56)
305((ICommunicationObject)this).Open(GetChannelFactory().InternalOpenTimeout);
358((ICommunicationObject)this).Close(GetChannelFactory().InternalCloseTimeout);
497void ICommunicationObject.Open(TimeSpan timeout)
508void ICommunicationObject.Close(TimeSpan timeout)
554event EventHandler ICommunicationObject.Closed
566event EventHandler ICommunicationObject.Closing
578event EventHandler ICommunicationObject.Faulted
590event EventHandler ICommunicationObject.Opened
602event EventHandler ICommunicationObject.Opening
614IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state)
616return ((ICommunicationObject)this).BeginClose(GetChannelFactory().InternalCloseTimeout, callback, state);
619IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state)
624void ICommunicationObject.EndClose(IAsyncResult result)
629IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state)
631return ((ICommunicationObject)this).BeginOpen(GetChannelFactory().InternalOpenTimeout, callback, state);
634IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
639void ICommunicationObject.EndOpen(IAsyncResult result)
1058CommunicationState ICommunicationObject.State
1060get { return ((ICommunicationObject)_channel).State; }
1063event EventHandler ICommunicationObject.Closed
1065add { ((ICommunicationObject)_channel).Closed += value; }
1066remove { ((ICommunicationObject)_channel).Closed -= value; }
1069event EventHandler ICommunicationObject.Closing
1071add { ((ICommunicationObject)_channel).Closing += value; }
1072remove { ((ICommunicationObject)_channel).Closing -= value; }
1075event EventHandler ICommunicationObject.Faulted
1077add { ((ICommunicationObject)_channel).Faulted += value; }
1078remove { ((ICommunicationObject)_channel).Faulted -= value; }
1081event EventHandler ICommunicationObject.Opened
1083add { ((ICommunicationObject)_channel).Opened += value; }
1084remove { ((ICommunicationObject)_channel).Opened -= value; }
1087event EventHandler ICommunicationObject.Opening
1089add { ((ICommunicationObject)_channel).Opening += value; }
1090remove { ((ICommunicationObject)_channel).Opening -= value; }
1093void ICommunicationObject.Abort()
1095((ICommunicationObject)_channel).Abort();
1098void ICommunicationObject.Close()
1100((ICommunicationObject)_channel).Close();
1103void ICommunicationObject.Close(TimeSpan timeout)
1105((ICommunicationObject)_channel).Close(timeout);
1108IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state)
1110return ((ICommunicationObject)_channel).BeginClose(callback, state);
1113IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state)
1115return ((ICommunicationObject)_channel).BeginClose(timeout, callback, state);
1118void ICommunicationObject.EndClose(IAsyncResult result)
1120((ICommunicationObject)_channel).EndClose(result);
1123void ICommunicationObject.Open()
1125((ICommunicationObject)_channel).Open();
1128void ICommunicationObject.Open(TimeSpan timeout)
1130((ICommunicationObject)_channel).Open(timeout);
1133IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state)
1135return ((ICommunicationObject)_channel).BeginOpen(callback, state);
1138IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
1140return ((ICommunicationObject)_channel).BeginOpen(timeout, callback, state);
1143void ICommunicationObject.EndOpen(IAsyncResult result)
1145((ICommunicationObject)_channel).EndOpen(result);
System.ServiceModel.Primitives.Tests (9)