public void Dispose() { if (_dataClient.TableExists("foo")) { _dataClient.RemoveTable("foo"); } _dataClient.RollBack(); _dataClient.Dispose(); }
public virtual void TearDown() { if (_dataClient.TableExists("foo")) { _dataClient.RemoveTable("foo"); } _dataClient.RollBack(); _dataClient.Dispose(); }
public virtual void TearDown() { DropTable(tableFoo); DropTable("bar"); DropTable("foobar"); DropTable("footable"); _dataClient.RollBack(); _dataClient.Dispose(); }
public virtual void TearDown() { _database.RollBack(); CleanTables(); _database.Dispose(); _dataClient.Dispose(); _database = null; _dataClient = null; GC.Collect(); }
public void Dispose() { Client.Dispose(); Client = null; if (_server != null) { _server.Stop(); _server = null; } }
public void Dispose() { _reconnectTimer?.Dispose(); if (_client != null) { _client.Dispose(); _client = null; } _frontContractRequests?.Dispose(); }
//the application is closing, shut down all the servers and stuff private void DXWindow_Closing(object sender, CancelEventArgs e) { //save grid layout using (var file = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory + "GridLayout.xml")) { InstrumentsGrid.SerializeLayout(file); } //Dispose main viewmodel ViewModel.Dispose(); //then take down the client, the servers, and the brokers _client.Disconnect(); _client.Dispose(); }
public void Dispose() { if (_reconnectTimer != null) { _reconnectTimer.Dispose(); } if (_client != null) { _client.Dispose(); _client = null; } if (_frontContractRequests != null) { _frontContractRequests.Dispose(); } }
public void TearDown() { _client.Dispose(); }