예제 #1
0
 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();
 }
예제 #3
0
 public virtual void TearDown()
 {
     DropTable(tableFoo);
     DropTable("bar");
     DropTable("foobar");
     DropTable("footable");
     _dataClient.RollBack();
     _dataClient.Dispose();
 }
예제 #4
0
 public virtual void TearDown()
 {
     _database.RollBack();
     CleanTables();
     _database.Dispose();
     _dataClient.Dispose();
     _database   = null;
     _dataClient = null;
     GC.Collect();
 }
예제 #5
0
        public void Dispose()
        {
            Client.Dispose();
            Client = null;

            if (_server != null)
            {
                _server.Stop();
                _server = null;
            }
        }
예제 #6
0
        public void Dispose()
        {
            _reconnectTimer?.Dispose();

            if (_client != null)
            {
                _client.Dispose();
                _client = null;
            }

            _frontContractRequests?.Dispose();
        }
예제 #7
0
        //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();
        }
예제 #8
0
 public void Dispose()
 {
     if (_reconnectTimer != null)
     {
         _reconnectTimer.Dispose();
     }
     if (_client != null)
     {
         _client.Dispose();
         _client = null;
     }
     if (_frontContractRequests != null)
     {
         _frontContractRequests.Dispose();
     }
 }
예제 #9
0
 public void TearDown()
 {
     _client.Dispose();
 }