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
6 implementations of ICommunicationObject
System.ServiceModel.Federation (2)
System\ServiceModel\Federation\WSTrustChannel.cs (1)
17public class WSTrustChannel : IWSTrustChannelContract, IChannel, ICommunicationObject
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
34public 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
738 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 (14)
NetTcpBindingTests.4.0.0.cs (6)
37((ICommunicationObject)serviceProxy).Close(); 43ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 75((ICommunicationObject)serviceProxy).Close(); 81ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 112((ICommunicationObject)serviceProxy).Close(); 118ScenarioTestHelpers.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 (29)
CallbackDebugBehaviorTests.cs (2)
81ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); 82ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy2, factory2);
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 (12)
TypedProxyTests.4.0.0.cs (10)
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);
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.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)
506event EventHandler ICommunicationObject.Closed 512event EventHandler ICommunicationObject.Closing 518event EventHandler ICommunicationObject.Faulted 524event EventHandler ICommunicationObject.Opened 530event EventHandler ICommunicationObject.Opening 536CommunicationState ICommunicationObject.State 541void ICommunicationObject.Abort() 546void ICommunicationObject.Close() 551void ICommunicationObject.Close(TimeSpan timeout) 556IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state) 561IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 566void ICommunicationObject.EndClose(IAsyncResult result) 571void ICommunicationObject.Open() 576void ICommunicationObject.Open(TimeSpan timeout) 581IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state) 586IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 591void 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)
285((ICommunicationObject)this).Open(GetChannelFactory().InternalOpenTimeout); 338((ICommunicationObject)this).Close(GetChannelFactory().InternalCloseTimeout); 477void ICommunicationObject.Open(TimeSpan timeout) 488void ICommunicationObject.Close(TimeSpan timeout) 534event EventHandler ICommunicationObject.Closed 546event EventHandler ICommunicationObject.Closing 558event EventHandler ICommunicationObject.Faulted 570event EventHandler ICommunicationObject.Opened 582event EventHandler ICommunicationObject.Opening 594IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state) 596return ((ICommunicationObject)this).BeginClose(GetChannelFactory().InternalCloseTimeout, callback, state); 599IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 604void ICommunicationObject.EndClose(IAsyncResult result) 609IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state) 611return ((ICommunicationObject)this).BeginOpen(GetChannelFactory().InternalOpenTimeout, callback, state); 614IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 619void ICommunicationObject.EndOpen(IAsyncResult result) 1038CommunicationState ICommunicationObject.State 1040get { return ((ICommunicationObject)_channel).State; } 1043event EventHandler ICommunicationObject.Closed 1045add { ((ICommunicationObject)_channel).Closed += value; } 1046remove { ((ICommunicationObject)_channel).Closed -= value; } 1049event EventHandler ICommunicationObject.Closing 1051add { ((ICommunicationObject)_channel).Closing += value; } 1052remove { ((ICommunicationObject)_channel).Closing -= value; } 1055event EventHandler ICommunicationObject.Faulted 1057add { ((ICommunicationObject)_channel).Faulted += value; } 1058remove { ((ICommunicationObject)_channel).Faulted -= value; } 1061event EventHandler ICommunicationObject.Opened 1063add { ((ICommunicationObject)_channel).Opened += value; } 1064remove { ((ICommunicationObject)_channel).Opened -= value; } 1067event EventHandler ICommunicationObject.Opening 1069add { ((ICommunicationObject)_channel).Opening += value; } 1070remove { ((ICommunicationObject)_channel).Opening -= value; } 1073void ICommunicationObject.Abort() 1075((ICommunicationObject)_channel).Abort(); 1078void ICommunicationObject.Close() 1080((ICommunicationObject)_channel).Close(); 1083void ICommunicationObject.Close(TimeSpan timeout) 1085((ICommunicationObject)_channel).Close(timeout); 1088IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state) 1090return ((ICommunicationObject)_channel).BeginClose(callback, state); 1093IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state) 1095return ((ICommunicationObject)_channel).BeginClose(timeout, callback, state); 1098void ICommunicationObject.EndClose(IAsyncResult result) 1100((ICommunicationObject)_channel).EndClose(result); 1103void ICommunicationObject.Open() 1105((ICommunicationObject)_channel).Open(); 1108void ICommunicationObject.Open(TimeSpan timeout) 1110((ICommunicationObject)_channel).Open(timeout); 1113IAsyncResult ICommunicationObject.BeginOpen(AsyncCallback callback, object state) 1115return ((ICommunicationObject)_channel).BeginOpen(callback, state); 1118IAsyncResult ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) 1120return ((ICommunicationObject)_channel).BeginOpen(timeout, callback, state); 1123void ICommunicationObject.EndOpen(IAsyncResult result) 1125((ICommunicationObject)_channel).EndOpen(result);
System\ServiceModel\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)
512if (tokenProvider is ICommunicationObject communicationObject && communicationObject != null) 533if (tokenProvider is ICommunicationObject communicationObject && communicationObject != null) 598ICommunicationObject 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();