6 interfaces inheriting from ICommunicationObject
System.ServiceModel.Primitives (5)
System\ServiceModel\Channels\IChannel.cs (1)
9public interface IChannel : ICommunicationObject
System\ServiceModel\Channels\IChannelAcceptor.cs (1)
8internal interface IChannelAcceptor<TChannel> : ICommunicationObject
System\ServiceModel\Channels\IChannelFactory.cs (1)
9public interface IChannelFactory : ICommunicationObject
System\ServiceModel\Channels\IChannelListener.cs (1)
8public interface IChannelListener : ICommunicationObject
System\ServiceModel\ICommunicationObject.cs (1)
35public interface IAsyncCommunicationObject : ICommunicationObject
UnitTests.Common (1)
IMockCommunicationObject.cs (1)
12public interface IMockCommunicationObject : ICommunicationObject
7 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 (4)
System\ServiceModel\Channels\CommunicationObject.cs (1)
14public abstract class CommunicationObject : ICommunicationObject, IAsyncCommunicationObject
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
18public class ServiceChannelProxy : DispatchProxy, ICommunicationObject, IChannel, IClientChannel, IOutputChannel, IRequestChannel, IServiceChannel, IDuplexContextChannel, IAsyncDisposable
System\ServiceModel\ClientBase.cs (1)
18public abstract class ClientBase<TChannel> : ICommunicationObject, IDisposable, IAsyncDisposable
System\ServiceModel\Security\WrapperSecurityCommunicationObject.cs (1)
297internal abstract class CommunicationObjectSecurityTokenAuthenticator : SecurityTokenAuthenticator, ICommunicationObject, ISecurityCommunicationObject
745 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)
41((ICommunicationObject)serviceProxy).Close(); 46ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
NetHttpsBindingTests.4.1.0.cs (5)
43((ICommunicationObject)serviceProxy).Close(); 48ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 78ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 111((ICommunicationObject)serviceProxy).Close(); 116ScenarioTestHelpers.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)
49((ICommunicationObject)serviceProxy).Close(); 54ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 87((ICommunicationObject)serviceProxy).Close(); 92ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 171((ICommunicationObject)serviceProxy).Close(); 176ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 249Assert.Equal(CommunicationState.Faulted, ((ICommunicationObject)serviceProxy).State); 250((ICommunicationObject)serviceProxy).Abort(); // Remove from factory so factory doesn't throw when closed. 258ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 341((ICommunicationObject)serviceProxy).Close(); 347ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 395((ICommunicationObject)serviceProxy).Close(); 401ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
NetTcpBindingTests.cs (3)
48ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 85ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 126ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
WSHttpBindingTests.cs (13)
49((ICommunicationObject)serviceProxy).Close(); 54ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 87((ICommunicationObject)serviceProxy).Close(); 92ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 171((ICommunicationObject)serviceProxy).Close(); 176ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 249Assert.Equal(CommunicationState.Faulted, ((ICommunicationObject)serviceProxy).State); 250((ICommunicationObject)serviceProxy).Abort(); // Remove from factory so factory doesn't throw when closed. 258ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 341((ICommunicationObject)serviceProxy).Close(); 347ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 395((ICommunicationObject)serviceProxy).Close(); 401ScenarioTestHelpers.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)
38((ICommunicationObject)serviceProxy).Close(); 44ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 74((ICommunicationObject)serviceProxy).Close(); 80ScenarioTestHelpers.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)
69((ICommunicationObject)serviceProxy).Close(); 75ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 121((ICommunicationObject)serviceProxy).Close(); 127ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 173((ICommunicationObject)serviceProxy).Close(); 179ScenarioTestHelpers.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)
67((ICommunicationObject)serviceProxy).Close(); 68((ICommunicationObject)factory).Close(); 73ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 132((ICommunicationObject)serviceProxy).Close(); 133((ICommunicationObject)factory).Close(); 138ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 202((ICommunicationObject)serviceProxy).Close(); 203((ICommunicationObject)factory).Close(); 208ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 248((ICommunicationObject)serviceProxy).Close(); 254ScenarioTestHelpers.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); 102((ICommunicationObject)serviceProxy).Close(); 107ScenarioTestHelpers.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); 91((ICommunicationObject)duplexService).Close(); 92((ICommunicationObject)proxy).Close(); 97ScenarioTestHelpers.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)
82ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 83ScenarioTestHelpers.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); 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);
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); 623((ICommunicationObject)serviceProxy).Close(); 628ScenarioTestHelpers.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)
43((ICommunicationObject)serviceProxy).Close(); 48ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 82((ICommunicationObject)serviceProxy).Close(); 87ScenarioTestHelpers.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)
46((ICommunicationObject)client).Close(); 52ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)client, channelFactory); 120((ICommunicationObject)serviceProxy).Close(); 126ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
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)
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); 501((ICommunicationObject)serviceProxy).Close(); 507ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 566((ICommunicationObject)serviceProxy).Close(); 572ScenarioTestHelpers.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); 164((ICommunicationObject)serviceProxy).Close(); 170ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 210((ICommunicationObject)serviceProxy).Close(); 216ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Negotiate\NegotiateStream_Http_Tests.4.1.0.cs (14)
98((ICommunicationObject)serviceProxy).Close(); 104ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 150((ICommunicationObject)serviceProxy).Close(); 156ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 203((ICommunicationObject)serviceProxy).Close(); 209ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 252((ICommunicationObject)serviceProxy).Close(); 258ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 296((ICommunicationObject)serviceProxy).Close(); 302ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 353((ICommunicationObject)serviceProxy).Close(); 359ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 403((ICommunicationObject)serviceProxy).Close(); 409ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Negotiate\NegotiateStream_Tcp_Tests.4.1.0.cs (12)
81((ICommunicationObject)serviceProxy).Close(); 87ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 130((ICommunicationObject)serviceProxy).Close(); 136ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 174((ICommunicationObject)serviceProxy).Close(); 180ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 214((ICommunicationObject)serviceProxy).Close(); 220ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 269((ICommunicationObject)serviceProxy).Close(); 275ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 317((ICommunicationObject)serviceProxy).Close(); 323ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory);
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (6)
60((ICommunicationObject)serviceProxy).Close(); 96ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 137((ICommunicationObject)serviceProxy).Close(); 173ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 223((ICommunicationObject)serviceProxy).Close(); 256ScenarioTestHelpers.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)
55((ICommunicationObject)serviceProxy).Close(); 61ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 120ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 163((ICommunicationObject)serviceProxy).Close(); 169ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 210((ICommunicationObject)serviceProxy).Close(); 216ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 270((ICommunicationObject)serviceProxy).Close(); 271((ICommunicationObject)factory).Close(); 276ScenarioTestHelpers.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)
50((ICommunicationObject)serviceProxy).Close(); 56ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 90((ICommunicationObject)serviceProxy).Close(); 96ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 131((ICommunicationObject)serviceProxy).Close(); 137ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 181((ICommunicationObject)serviceProxy).Close(); 187ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 214((ICommunicationObject)serviceProxy).Open(); 231((ICommunicationObject)serviceProxy).Close(); 246ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 281((ICommunicationObject)serviceProxy).Close(); 287ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 322((ICommunicationObject)serviceProxy).Close(); 328ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 363((ICommunicationObject)serviceProxy).Close(); 369ScenarioTestHelpers.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 (96)
Internals\System\Runtime\TaskHelpers.cs (2)
191public static Task CloseHelperAsync(this ICommunicationObject communicationObject, TimeSpan timeout) 203public static Task OpenHelperAsync(this ICommunicationObject communicationObject, TimeSpan timeout)
System\ServiceModel\Channels\CloseCollectionAsyncResult.cs (4)
19public CloseCollectionAsyncResult(TimeSpan timeout, AsyncCallback otherCallback, object state, IList<ICommunicationObject> collection) 59private void CompleteClose(ICommunicationObject communicationObject, IAsyncResult result) 126public CallbackState(CloseCollectionAsyncResult result, ICommunicationObject instance) 132public ICommunicationObject Instance { get; }
System\ServiceModel\Channels\CommunicationObject.cs (2)
1017internal Task OpenOtherAsync(ICommunicationObject other, TimeSpan timeout) 1047internal Task CloseOtherAsync(ICommunicationObject other, TimeSpan timeout)
System\ServiceModel\Channels\CommunicationObjectManager.cs (1)
10internal class CommunicationObjectManager<ItemType> : LifetimeManager where ItemType : class, ICommunicationObject
System\ServiceModel\Channels\OpenCollectionAsyncResult.cs (3)
20public OpenCollectionAsyncResult(TimeSpan timeout, AsyncCallback otherCallback, object state, IList<ICommunicationObject> collection) 110public CallbackState(OpenCollectionAsyncResult result, ICommunicationObject instance) 116public ICommunicationObject Instance { get; }
System\ServiceModel\Channels\ServiceChannelFactory.cs (2)
264List<ICommunicationObject> objectList; 267objectList = new List<ICommunicationObject>();
System\ServiceModel\Channels\ServiceChannelProxy.cs (18)
343if (methodData.MethodBase.DeclaringType == typeof(ICommunicationObject) 538CommunicationState ICommunicationObject.State 543event EventHandler ICommunicationObject.Closed 549event EventHandler ICommunicationObject.Closing 555event EventHandler ICommunicationObject.Faulted 561event EventHandler ICommunicationObject.Opened 567event EventHandler ICommunicationObject.Opening 573void ICommunicationObject.Abort() 578void ICommunicationObject.Close() 583void ICommunicationObject.Close(TimeSpan timeout) 588IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state) 593IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 598void ICommunicationObject.EndClose(IAsyncResult result) 603void ICommunicationObject.Open() 608void ICommunicationObject.Open(TimeSpan timeout) 613IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state) 618IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 623void ICommunicationObject.EndOpen(IAsyncResult result)
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\Diagnostics\TraceUtility.cs (2)
398if (value is ICommunicationObject) 400((ICommunicationObject)value).Abort();
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (2)
404List<ICommunicationObject> list = new List<ICommunicationObject>();
System\ServiceModel\Security\SecurityUtils.cs (4)
514if (tokenProvider is ICommunicationObject communicationObject && communicationObject != null) 535if (tokenProvider is ICommunicationObject communicationObject && communicationObject != null) 600ICommunicationObject co = obj as ICommunicationObject;
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();