Esempio n. 1
0
        private bool disposedValue = false; // To detect redundant calls

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    logger.Trace("Disposing Ignite Client...");
                    m_ignite.Dispose();
                    logger.Trace("...Ignite Client disposed.");
                }
                disposedValue = true;
            }
        }
Esempio n. 2
0
        public void GlobalCleanup()
        {
            _client.DestroyCache(_cacheA.Name);
            _client.DestroyCache(_cacheB.Name);
            _client.DestroyCache(_cacheC.Name);
            _client.DestroyCache(_cacheD.Name);
            _client.DestroyCache(_cacheE.Name);

            _client.DestroyCache(_cacheF.Name);
            _client.DestroyCache(_cacheG.Name);
            _client.DestroyCache(_cacheH.Name);
            _client.DestroyCache(_cacheI.Name);
            _client.DestroyCache(_cacheJ.Name);

            _client.Dispose();
        }
Esempio n. 3
0
 public void Dispose()
 {
     _ignite.Dispose();
 }
Esempio n. 4
0
 public static void Dispose()
 {
     _ignite?.Dispose();
 }
Esempio n. 5
0
 public void Dispose()
 {
     _queryHandle?.Dispose();
     _ignite?.Dispose();
 }
Esempio n. 6
0
 public void GlobalCleanup()
 {
     Client.DestroyCache(Cache.Name);
     Client.Dispose();
 }