public void Dispose() { this._isDisposed = true; var transport = Interlocked.CompareExchange( ref this._transport, null, null ); if ( transport != null ) { transport.Dispose(); } this._transportManager.Dispose(); }
public void TestDispose_Twise_Harmless() { using (var environment = new InProcTestEnvironment()) { var target = new RpcClient(_loopbackEndPoint, environment.Configuration, null); target.Dispose(); target.Dispose(); } }