14 interfaces inheriting from ICommunicationObject
System.ServiceModel.Primitives (13)
netstandard.cs (13)
785public partial interface IClientChannel : System.IDisposable, System.ServiceModel.Channels.IChannel, System.ServiceModel.ICommunicationObject, System.ServiceModel.IContextChannel, System.ServiceModel.IExtensibleObject<System.ServiceModel.IContextChannel> 815public partial interface IContextChannel : System.ServiceModel.Channels.IChannel, System.ServiceModel.ICommunicationObject, System.ServiceModel.IExtensibleObject<System.ServiceModel.IContextChannel> 1439public partial interface IChannel : System.ServiceModel.ICommunicationObject 1443public partial interface IChannelFactory : System.ServiceModel.ICommunicationObject 1447public partial interface IChannelFactory<TChannel> : System.ServiceModel.Channels.IChannelFactory, System.ServiceModel.ICommunicationObject 1457public partial interface IDuplexChannel : System.ServiceModel.Channels.IChannel, System.ServiceModel.Channels.IInputChannel, System.ServiceModel.Channels.IOutputChannel, System.ServiceModel.ICommunicationObject 1468public partial interface IDuplexSessionChannel : System.ServiceModel.Channels.IChannel, System.ServiceModel.Channels.IDuplexChannel, System.ServiceModel.Channels.IInputChannel, System.ServiceModel.Channels.IOutputChannel, System.ServiceModel.Channels.ISessionChannel<System.ServiceModel.Channels.IDuplexSession>, System.ServiceModel.ICommunicationObject 1471public partial interface IInputChannel : System.ServiceModel.Channels.IChannel, System.ServiceModel.ICommunicationObject 1489public partial interface IInputSessionChannel : System.ServiceModel.Channels.IChannel, System.ServiceModel.Channels.IInputChannel, System.ServiceModel.Channels.ISessionChannel<System.ServiceModel.Channels.IInputSession>, System.ServiceModel.ICommunicationObject 1496public partial interface IOutputChannel : System.ServiceModel.Channels.IChannel, System.ServiceModel.ICommunicationObject 1509public partial interface IOutputSessionChannel : System.ServiceModel.Channels.IChannel, System.ServiceModel.Channels.IOutputChannel, System.ServiceModel.Channels.ISessionChannel<System.ServiceModel.Channels.IOutputSession>, System.ServiceModel.ICommunicationObject 1512public partial interface IRequestChannel : System.ServiceModel.Channels.IChannel, System.ServiceModel.ICommunicationObject 1522public partial interface IRequestSessionChannel : System.ServiceModel.Channels.IChannel, System.ServiceModel.Channels.IRequestChannel, System.ServiceModel.Channels.ISessionChannel<System.ServiceModel.Channels.IOutputSession>, System.ServiceModel.ICommunicationObject
UnitTests.Common (1)
IMockCommunicationObject.cs (1)
12public interface IMockCommunicationObject : ICommunicationObject
11 implementations of ICommunicationObject
System.ServiceModel.Federation (3)
System\IdentityModel\Security\WrapperSecurityCommunicationObject.cs (1)
316internal abstract class CommunicationObjectSecurityTokenAuthenticator : SecurityTokenAuthenticator, ICommunicationObject, ISecurityCommunicationObject
System\ServiceModel\Federation\WSTrustChannel.cs (1)
17public class WSTrustChannel : IWSTrustChannelContract, IChannel, ICommunicationObject
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
33public class WSTrustChannelSecurityTokenProvider : SecurityTokenProvider, ICommunicationObject, ISecurityCommunicationObject
System.ServiceModel.Primitives (8)
netstandard.cs (8)
430public abstract partial class ChannelFactory : System.ServiceModel.Channels.CommunicationObject, System.IDisposable, System.ServiceModel.Channels.IChannelFactory, System.ServiceModel.ICommunicationObject 454public partial class ChannelFactory<TChannel> : System.ServiceModel.ChannelFactory, System.ServiceModel.Channels.IChannelFactory, System.ServiceModel.Channels.IChannelFactory<TChannel>, System.ServiceModel.ICommunicationObject 472public abstract partial class ClientBase<TChannel> : System.IDisposable, System.ServiceModel.ICommunicationObject where TChannel : class 507protected partial class ChannelBase<T> : System.IDisposable, System.ServiceModel.Channels.IChannel, System.ServiceModel.Channels.IOutputChannel, System.ServiceModel.Channels.IRequestChannel, System.ServiceModel.IClientChannel, System.ServiceModel.ICommunicationObject, System.ServiceModel.IContextChannel, System.ServiceModel.IExtensibleObject<System.ServiceModel.IContextChannel> where T : class 1311public abstract partial class ChannelBase : System.ServiceModel.Channels.CommunicationObject, System.ServiceModel.Channels.IChannel, System.ServiceModel.ICommunicationObject, System.ServiceModel.IDefaultCommunicationTimeouts 1326public abstract partial class ChannelFactoryBase : System.ServiceModel.Channels.ChannelManagerBase, System.ServiceModel.Channels.IChannelFactory, System.ServiceModel.ICommunicationObject 1340public abstract partial class ChannelFactoryBase<TChannel> : System.ServiceModel.Channels.ChannelFactoryBase, System.ServiceModel.Channels.IChannelFactory, System.ServiceModel.Channels.IChannelFactory<TChannel>, System.ServiceModel.ICommunicationObject 1374public abstract partial class CommunicationObject : System.ServiceModel.ICommunicationObject
683 references to ICommunicationObject
Binding.Custom.IntegrationTests (6)
CustomBindingTests.4.0.0.cs (2)
39((ICommunicationObject)serviceProxy).Close(); 44ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
CustomBindingTests.4.1.0.cs (4)
46((ICommunicationObject)serviceProxy).Close(); 52ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 85((ICommunicationObject)serviceProxy).Close(); 90ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Binding.Http.IntegrationTests (28)
BasicHttpBindingTests.4.0.0.cs (18)
47((ICommunicationObject)serviceProxy).Close(); 52ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 87((ICommunicationObject)serviceProxy).Close(); 92ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 132((ICommunicationObject)serviceProxy).Close(); 137ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 189((ICommunicationObject)serviceProxy).Close(); 194ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 227((ICommunicationObject)serviceProxy).Close(); 232ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 274((ICommunicationObject)serviceProxy).Close(); 279ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 318((ICommunicationObject)serviceProxy).Close(); 323ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 357((ICommunicationObject)serviceProxy).Close(); 362ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 397((ICommunicationObject)serviceProxy).Close(); 402ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
NetHttpBindingTests.4.0.0.cs (2)
40((ICommunicationObject)serviceProxy).Close(); 45ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
NetHttpsBindingTests.4.1.0.cs (5)
42((ICommunicationObject)serviceProxy).Close(); 47ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 77ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 109((ICommunicationObject)serviceProxy).Close(); 114ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
OperationContextTests.cs (1)
60ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
WSHttpBindingTests.cs (2)
38((ICommunicationObject)serviceProxy).Close(); 43ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Binding.ReliableSession.IntegrationTests (29)
NetHttpBindingTests.cs (13)
48((ICommunicationObject)serviceProxy).Close(); 53ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 85((ICommunicationObject)serviceProxy).Close(); 90ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 168((ICommunicationObject)serviceProxy).Close(); 173ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 245Assert.Equal(CommunicationState.Faulted, ((ICommunicationObject)serviceProxy).State); 246((ICommunicationObject)serviceProxy).Abort(); // Remove from factory so factory doesn't throw when closed. 254ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 336((ICommunicationObject)serviceProxy).Close(); 342ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 389((ICommunicationObject)serviceProxy).Close(); 395ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
NetTcpBindingTests.cs (3)
47ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 83ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 123ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
WSHttpBindingTests.cs (13)
48((ICommunicationObject)serviceProxy).Close(); 53ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 85((ICommunicationObject)serviceProxy).Close(); 90ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 168((ICommunicationObject)serviceProxy).Close(); 173ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 245Assert.Equal(CommunicationState.Faulted, ((ICommunicationObject)serviceProxy).State); 246((ICommunicationObject)serviceProxy).Abort(); // Remove from factory so factory doesn't throw when closed. 254ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 336((ICommunicationObject)serviceProxy).Close(); 342ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 389((ICommunicationObject)serviceProxy).Close(); 395ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Binding.Tcp.IntegrationTests (18)
NetTcpBindingTests.4.0.0.cs (10)
37((ICommunicationObject)serviceProxy).Close(); 43ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 75((ICommunicationObject)serviceProxy).Close(); 81ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 114((ICommunicationObject)serviceProxy).Close(); 120ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 151((ICommunicationObject)serviceProxy).Close(); 157ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 189((ICommunicationObject)serviceProxy).Close(); 195ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
NetTcpBindingTests.4.1.0.cs (4)
39((ICommunicationObject)serviceProxy).Close(); 45ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 76((ICommunicationObject)serviceProxy).Close(); 82ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
OperationContextAsyncFlowTests.cs (4)
47ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 94ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 128((ICommunicationObject)serviceProxy).Close(); 134ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Binding.UDS.IntegrationTests (2)
ServiceHelper.cs (2)
89public static void CloseServiceModelObjects(params System.ServiceModel.ICommunicationObject[] objects) 91foreach (System.ServiceModel.ICommunicationObject comObj in objects)
Binding.WS.FederationHttp.IntegrationTests (6)
WSFederationHttpBindingTests.cs (6)
68((ICommunicationObject)serviceProxy).Close(); 74ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 119((ICommunicationObject)serviceProxy).Close(); 125ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 170((ICommunicationObject)serviceProxy).Close(); 176ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Client.ChannelLayer.IntegrationTests (13)
DuplexChannelShapeTests.4.0.0.cs (2)
160((ICommunicationObject)channel).Close(); 189((ICommunicationObject)channel).Close();
DuplexChannelWithSynchronizationContext.cs (11)
66((ICommunicationObject)serviceProxy).Close(); 67((ICommunicationObject)factory).Close(); 72ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 130((ICommunicationObject)serviceProxy).Close(); 131((ICommunicationObject)factory).Close(); 136ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 199((ICommunicationObject)serviceProxy).Close(); 200((ICommunicationObject)factory).Close(); 205ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 245((ICommunicationObject)serviceProxy).Close(); 251ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
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);
ClientBaseTestHelpers.cs (1)
31public static void RegisterForEvents(ICommunicationObject co, List<string> eventsCalled, bool deregister = false)
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);
ClientBaseTests.4.1.0.cs (4)
48((ICommunicationObject)serviceProxy).Close(); 53ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 101((ICommunicationObject)serviceProxy).Close(); 106ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
ClientBaseTests.4.4.0.cs (1)
44((ICommunicationObject)client).Close();
DuplexClientBaseTests.4.1.0.cs (6)
46((ICommunicationObject)duplexService).Close(); 56ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy, duplexService); 90((ICommunicationObject)duplexService).Close(); 91((ICommunicationObject)proxy).Close(); 96ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy, (ICommunicationObject)duplexService);
MessageInspectorTests.4.4.0.cs (6)
60((ICommunicationObject)mi_ClientBase_ClientAuth1).Close(); 61((ICommunicationObject)mi_ClientBase_ClientAuth2).Close(); 66ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)mi_ClientBase_ClientAuth1, (ICommunicationObject)mi_ClientBase_ClientAuth2); 105((ICommunicationObject)mi_ClientBase_ClientAuth).Close(); 110ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)mi_ClientBase_ClientAuth);
SessionTests.cs (14)
40((ICommunicationObject)channel).Close(); 44ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)channel, factory); 91(ICommunicationObject)channel1, 92(ICommunicationObject)channel2, 114ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)channel1); 138ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)channel2); 162ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)channel3); 178(channel as ICommunicationObject).Open(); 207ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)channel); 485private List<ICommunicationObject> _objectsToClose = new List<ICommunicationObject>(); 489_objectsToClose.Add((ICommunicationObject)o); 494foreach (var o in _objectsToClose) 517((ICommunicationObject)s_channel).Open();
Client.ExpectedExceptions.IntegrationTests (31)
CallbackDebugBehaviorTests.cs (2)
81ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 82ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy2, factory2);
CallbackErrorHandlerTests.cs (2)
39((ICommunicationObject)serviceProxy).Close(); 45ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
ExpectedExceptionTests.4.0.0.cs (9)
44ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 89ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 135ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 174ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 209ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 264((ICommunicationObject)serviceProxy).Opening += (s, e) => 315((ICommunicationObject)serviceProxy).Abort(); 384((ICommunicationObject)serviceProxy).Close(); 390ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
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);
ExpectedExceptionTests.4.1.1.cs (2)
45((ICommunicationObject)serviceProxy).Close(); 51ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Client.TypedClient.IntegrationTests (14)
TypedProxyTests.4.0.0.cs (12)
143((ICommunicationObject)serviceProxy).Close(); 148ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 206((ICommunicationObject)serviceProxy).Close(); 211ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 486((ICommunicationObject)serviceProxy).Close(); 491ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 527((ICommunicationObject)serviceProxy).Close(); 532ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 560((ICommunicationObject)serviceProxy).Close(); 565ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 620((ICommunicationObject)serviceProxy).Close(); 625ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
TypedProxyTests.4.1.0.cs (2)
79((ICommunicationObject)serviceProxy).Close(); 84ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Contract.Data.IntegrationTests (8)
DataContractTests.4.0.0.cs (2)
51((ICommunicationObject)serviceProxy).Close(); 56ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
DataContractTests.4.1.0.cs (4)
42((ICommunicationObject)serviceProxy).Close(); 47ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 80((ICommunicationObject)serviceProxy).Close(); 85ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
DataContractTests.4.1.1.cs (2)
47((ICommunicationObject)client).Close(); 52ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, factory);
Contract.Fault.IntegrationTests (14)
FaultExceptionTests.4.0.0.cs (12)
40ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 74ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 111((ICommunicationObject)serviceProxy).Close(); 116ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 143((ICommunicationObject)serviceProxy).Close(); 149ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 180((ICommunicationObject)serviceProxy).Close(); 186ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 217((ICommunicationObject)serviceProxy).Close(); 223ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 258((ICommunicationObject)serviceProxy).Close(); 264ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
FaultExceptionTests.cs (2)
51ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, (ICommunicationObject)client);
Contract.Message.IntegrationTests (9)
MessageContractTests.4.4.0.cs (4)
60((ICommunicationObject)clientProxy).Close(); 65ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)clientProxy, factory); 117((ICommunicationObject)clientProxy).Close(); 122ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)clientProxy, factory);
MessageContractTests.cs (3)
51ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy); 67ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy); 85ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)proxy, factory);
MessageTests.4.0.0.cs (2)
97((ICommunicationObject)serviceProxy).Close(); 102ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
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,
ServiceKnownTypeTests.4.0.0.cs (2)
121((ICommunicationObject)serviceProxy).Close(); 127ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Contract.XmlSerializer.IntegrationTests (25)
XmlSerializerFormatSoapTest.cs (2)
98((ICommunicationObject)serviceProxy).Close(); 103ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy);
XmlSerializerFormatTest.4.0.0.cs (6)
140((ICommunicationObject)serviceProxy).Close(); 146ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 177((ICommunicationObject)serviceProxy).Close(); 183ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 209((ICommunicationObject)serviceProxy).Close(); 214ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
XmlSerializerFormatTest.4.1.0.cs (4)
36ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 63ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 100((ICommunicationObject)serviceProxy).Close(); 105ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, client);
XmlSerializerFormatTest.cs (13)
100ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy); 122ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 154ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1); 202ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1); 250ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1); 298ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1); 354ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1); 355ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy2); 411ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1); 412ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy2); 468ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1); 469ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy2); 506ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1);
dotnet-svcutil.xmlserializer.IntegrationTests (25)
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatSoapTest.cs (2)
98((ICommunicationObject)serviceProxy).Close(); 103ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy);
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatTest.4.0.0.cs (6)
140((ICommunicationObject)serviceProxy).Close(); 146ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 177((ICommunicationObject)serviceProxy).Close(); 183ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 209((ICommunicationObject)serviceProxy).Close(); 214ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatTest.4.1.0.cs (4)
36ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 63ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 100((ICommunicationObject)serviceProxy).Close(); 105ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, client);
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatTest.cs (13)
100ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy); 122ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 154ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1); 202ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1); 250ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1); 298ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1); 354ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1); 355ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy2); 411ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1); 412ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy2); 468ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1); 469ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy2); 506ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy1);
Encoding.Encoders.IntegrationTests (9)
BinaryEncodingTests.4.0.0.cs (4)
44((ICommunicationObject)serviceProxy).Close(); 49ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 83((ICommunicationObject)serviceProxy).Close(); 88ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
TextEncodingTests.4.0.0.cs (2)
44((ICommunicationObject)serviceProxy).Close(); 49ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
TextEncodingTests.4.1.0.cs (3)
37((ICommunicationObject)serviceProxy).Close(); 42ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 69ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)channel, factory);
Encoding.MessageVersion.IntegrationTests (14)
MessageVersionTests.4.0.0.cs (4)
43((ICommunicationObject)serviceProxy).Close(); 48ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 79((ICommunicationObject)serviceProxy).Close(); 84ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
MessageVersionTests.cs (10)
43((ICommunicationObject)serviceProxy).Close(); 48ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 79((ICommunicationObject)serviceProxy).Close(); 84ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 115((ICommunicationObject)serviceProxy).Close(); 120ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 151((ICommunicationObject)serviceProxy).Close(); 156ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 187((ICommunicationObject)serviceProxy).Close(); 192ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Extensibility.MessageEncoder.IntegrationTests (4)
TextTests.4.1.0.cs (4)
49((ICommunicationObject)client).Close(); 55ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory); 123((ICommunicationObject)serviceProxy).Close(); 129ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Extensibility.MessageInterceptor.IntegrationTests (2)
MessageInterceptorTests.4.1.1.cs (2)
59((ICommunicationObject)serviceProxy).Close(); 65ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
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)
ServiceUtilHelper.cs (2)
420private static void CloseCommunicationObjects(params ICommunicationObject[] objects) 422foreach (ICommunicationObject comObj in objects)
ScenarioTests.Common.Tests (4)
ScenarioTestHelpers.cs (4)
84((ICommunicationObject)serviceProxy).Close(); 89ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 184public static void CloseCommunicationObjects(params ICommunicationObject[] objects) 186foreach (ICommunicationObject comObj in objects)
Security.TransportSecurity.IntegrationTests (99)
Http\ClientCredentialTypeTests.4.1.0.cs (4)
68((ICommunicationObject)serviceProxy).Close(); 73ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 131((ICommunicationObject)serviceProxy).Close(); 136ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Https\ClientCredentialTypeTests.4.1.0.cs (4)
87((ICommunicationObject)serviceProxy).Close(); 92ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 156ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 198ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Https\HttpsTests.4.1.0.cs (16)
57((ICommunicationObject)serviceProxy).Close(); 62ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 261((ICommunicationObject)serviceProxy).Close(); 267ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 302((ICommunicationObject)serviceProxy).Close(); 308ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 340((ICommunicationObject)serviceProxy).Close(); 346ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 390((ICommunicationObject)serviceProxy).Close(); 396ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 441((ICommunicationObject)serviceProxy).Close(); 447ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 500((ICommunicationObject)serviceProxy).Close(); 506ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 564((ICommunicationObject)serviceProxy).Close(); 570ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Https\HttpsTests.4.1.1.cs (8)
54((ICommunicationObject)serviceProxy).Close(); 60ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 115((ICommunicationObject)serviceProxy).Close(); 121ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 163((ICommunicationObject)serviceProxy).Close(); 169ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 208((ICommunicationObject)serviceProxy).Close(); 214ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Negotiate\NegotiateStream_Http_Tests.4.1.0.cs (14)
97((ICommunicationObject)serviceProxy).Close(); 103ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 148((ICommunicationObject)serviceProxy).Close(); 154ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 200((ICommunicationObject)serviceProxy).Close(); 206ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 248((ICommunicationObject)serviceProxy).Close(); 254ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 292((ICommunicationObject)serviceProxy).Close(); 298ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 348((ICommunicationObject)serviceProxy).Close(); 354ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 398((ICommunicationObject)serviceProxy).Close(); 404ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Negotiate\NegotiateStream_Tcp_Tests.4.1.0.cs (12)
82((ICommunicationObject)serviceProxy).Close(); 88ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 131((ICommunicationObject)serviceProxy).Close(); 137ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 176((ICommunicationObject)serviceProxy).Close(); 182ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 217((ICommunicationObject)serviceProxy).Close(); 223ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 272((ICommunicationObject)serviceProxy).Close(); 278ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 319((ICommunicationObject)serviceProxy).Close(); 325ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (6)
58((ICommunicationObject)serviceProxy).Close(); 94ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 134((ICommunicationObject)serviceProxy).Close(); 170ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 220((ICommunicationObject)serviceProxy).Close(); 253ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Tcp\ClientCredentialTypeTests.4.1.0.cs (6)
54((ICommunicationObject)serviceProxy).Close(); 60ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 107((ICommunicationObject)serviceProxy).Close(); 113ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 149((ICommunicationObject)serviceProxy).Close(); 155ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Tcp\ClientCredentialTypeTests.4.1.1.cs (10)
54((ICommunicationObject)serviceProxy).Close(); 60ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 119ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 161((ICommunicationObject)serviceProxy).Close(); 167ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 208((ICommunicationObject)serviceProxy).Close(); 214ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 267((ICommunicationObject)serviceProxy).Close(); 268((ICommunicationObject)factory).Close(); 273ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Tcp\ClientCredentialTypeTests.OSX.cs (2)
81((ICommunicationObject)serviceProxy).Close(); 87ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Tcp\StreamingTests.4.1.0.cs (17)
51((ICommunicationObject)serviceProxy).Close(); 57ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 92((ICommunicationObject)serviceProxy).Close(); 98ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 134((ICommunicationObject)serviceProxy).Close(); 140ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 185((ICommunicationObject)serviceProxy).Close(); 191ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 218((ICommunicationObject)serviceProxy).Open(); 235((ICommunicationObject)serviceProxy).Close(); 250ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 286((ICommunicationObject)serviceProxy).Close(); 292ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 328((ICommunicationObject)serviceProxy).Close(); 334ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 370((ICommunicationObject)serviceProxy).Close(); 376ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
System.ServiceModel (1)
netstandard.cs (1)
168[assembly: TypeForwardedTo(typeof(ICommunicationObject))]
System.ServiceModel.Federation (34)
System\ServiceModel\Federation\WSTrustChannel.cs (17)
161event EventHandler ICommunicationObject.Closed 170event EventHandler ICommunicationObject.Closing 179event EventHandler ICommunicationObject.Faulted 188event EventHandler ICommunicationObject.Opened 197event EventHandler ICommunicationObject.Opening 206void ICommunicationObject.Abort() 226IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 243IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state) 263IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 280IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state) 291void ICommunicationObject.Close(TimeSpan timeout) 299void ICommunicationObject.Close() 308void ICommunicationObject.EndClose(IAsyncResult result) 317void ICommunicationObject.EndOpen(IAsyncResult result) 328void ICommunicationObject.Open(TimeSpan timeout) 336void ICommunicationObject.Open() 344CommunicationState ICommunicationObject.State
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (17)
488event EventHandler ICommunicationObject.Closed 494event EventHandler ICommunicationObject.Closing 500event EventHandler ICommunicationObject.Faulted 506event EventHandler ICommunicationObject.Opened 512event EventHandler ICommunicationObject.Opening 518CommunicationState ICommunicationObject.State 523void ICommunicationObject.Abort() 528void ICommunicationObject.Close() 533void ICommunicationObject.Close(TimeSpan timeout) 538IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state) 543IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 548void ICommunicationObject.EndClose(IAsyncResult result) 553void ICommunicationObject.Open() 558void ICommunicationObject.Open(TimeSpan timeout) 563IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state) 568IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 573void ICommunicationObject.EndOpen(IAsyncResult result)
System.ServiceModel.Federation.Tests (1)
WSTrustChannelSecurityTokenProviderTest.cs (1)
61(derivedTokenProvider as ICommunicationObject).Open();
System.ServiceModel.NetFramingBase (7)
System\ServiceModel\Security\SecurityUtilsEx.cs (7)
45return OpenCommunicationObjectAsync(tokenProvider as ICommunicationObject, timeout); 60return OpenCommunicationObjectAsync(tokenAuthenticator as ICommunicationObject, timeout); 67ICommunicationObject co = obj as ICommunicationObject; 89ICommunicationObject co = obj as ICommunicationObject; 103private static Task OpenCommunicationObjectAsync(ICommunicationObject obj, TimeSpan timeout)
System.ServiceModel.Primitives (32)
netstandard.cs (32)
484event System.EventHandler System.ServiceModel.ICommunicationObject.Closed { add { } remove { } } 485event System.EventHandler System.ServiceModel.ICommunicationObject.Closing { add { } remove { } } 486event System.EventHandler System.ServiceModel.ICommunicationObject.Faulted { add { } remove { } } 487event System.EventHandler System.ServiceModel.ICommunicationObject.Opened { add { } remove { } } 488event System.EventHandler System.ServiceModel.ICommunicationObject.Opening { add { } remove { } } 495System.IAsyncResult System.ServiceModel.ICommunicationObject.BeginClose(System.AsyncCallback callback, object state) { return default; } 496System.IAsyncResult System.ServiceModel.ICommunicationObject.BeginClose(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 497System.IAsyncResult System.ServiceModel.ICommunicationObject.BeginOpen(System.AsyncCallback callback, object state) { return default; } 498System.IAsyncResult System.ServiceModel.ICommunicationObject.BeginOpen(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 499void System.ServiceModel.ICommunicationObject.Close() { } 500void System.ServiceModel.ICommunicationObject.Close(System.TimeSpan timeout) { } 501void System.ServiceModel.ICommunicationObject.EndClose(System.IAsyncResult result) { } 502void System.ServiceModel.ICommunicationObject.EndOpen(System.IAsyncResult result) { } 503void System.ServiceModel.ICommunicationObject.Open() { } 504void System.ServiceModel.ICommunicationObject.Open(System.TimeSpan timeout) { } 517System.ServiceModel.CommunicationState System.ServiceModel.ICommunicationObject.State { get { return default; } } 527event System.EventHandler System.ServiceModel.ICommunicationObject.Closed { add { } remove { } } 528event System.EventHandler System.ServiceModel.ICommunicationObject.Closing { add { } remove { } } 529event System.EventHandler System.ServiceModel.ICommunicationObject.Faulted { add { } remove { } } 530event System.EventHandler System.ServiceModel.ICommunicationObject.Opened { add { } remove { } } 531event System.EventHandler System.ServiceModel.ICommunicationObject.Opening { add { } remove { } } 552void System.ServiceModel.ICommunicationObject.Abort() { } 553System.IAsyncResult System.ServiceModel.ICommunicationObject.BeginClose(System.AsyncCallback callback, object state) { return default; } 554System.IAsyncResult System.ServiceModel.ICommunicationObject.BeginClose(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 555System.IAsyncResult System.ServiceModel.ICommunicationObject.BeginOpen(System.AsyncCallback callback, object state) { return default; } 556System.IAsyncResult System.ServiceModel.ICommunicationObject.BeginOpen(System.TimeSpan timeout, System.AsyncCallback callback, object state) { return default; } 557void System.ServiceModel.ICommunicationObject.Close() { } 558void System.ServiceModel.ICommunicationObject.Close(System.TimeSpan timeout) { } 559void System.ServiceModel.ICommunicationObject.EndClose(System.IAsyncResult result) { } 560void System.ServiceModel.ICommunicationObject.EndOpen(System.IAsyncResult result) { } 561void System.ServiceModel.ICommunicationObject.Open() { } 562void System.ServiceModel.ICommunicationObject.Open(System.TimeSpan timeout) { }
System.ServiceModel.Primitives.Tests (9)
Channels\CustomChannelTest.cs (6)
104Assert.True(((ICommunicationObject)channel).State == CommunicationState.Closed, 105String.Format("Expected channel's final state to be Closed but was '{0}'", ((ICommunicationObject)channel).State)); 201Assert.True(((ICommunicationObject)channel).State == CommunicationState.Closed, 202String.Format("Expected channel's final state to be Closed but was '{0}'", ((ICommunicationObject)channel).State)); 394Assert.True(((ICommunicationObject)channel).State == CommunicationState.Closed, 395String.Format("Expected channel's final state to be Closed but was '{0}'", ((ICommunicationObject)channel).State));
Description\OperationBehaviorTest.cs (2)
40((ICommunicationObject)proxy).Close(); 41((ICommunicationObject)duplexService).Close();
ServiceModel\DuplexClientBaseTest.cs (1)
75((ICommunicationObject)duplexClientBase).Open();