public void Dispose()
        {
            using (WebServiceDataServer database = new TaxonServer())
            {
                database.Dispose();

                // Should be ok to dispose an already disposed database.
                database.Dispose();
            }
        }
예제 #2
0
 private TaxonServer GetDatabase(Boolean refresh = false)
 {
     if (_database.IsNull() || refresh)
     {
         if (_database.IsNotNull())
         {
             _database.Dispose();
         }
         _database = new TaxonServer();
         _database.BeginTransaction();
     }
     // GuNy 2011-11-22
     _database.CommandTimeout = 60;
     return(_database);
 }