Ejemplo n.º 1
0
 public override void Dispose()
 {
     disposed = true;
     AppDomain.CurrentDomain.ProcessExit -= CurrentDomain_ProcessExit;
     thread_persistence.Join();
     if (db != null)
     {
         db.Dispose();
         db = null;
     }
 }
Ejemplo n.º 2
0
 public override void Dispose()
 {
     disposed = true;
     AppDomain.CurrentDomain.ProcessExit -= CurrentDomain_ProcessExit;
     if (!thread_persistence.ThreadState.HasFlag(ThreadState.Unstarted))
     {
         thread_persistence.Join();
     }
     if (db != null)
     {
         db.Dispose();
         db = null;
     }
 }
Ejemplo n.º 3
0
 public override void Dispose()
 {
     disposed = true;
     new_block_event.Set();
     if (!thread_persistence.ThreadState.HasFlag(ThreadState.Unstarted))
     {
         thread_persistence.Join();
     }
     new_block_event.Dispose();
     if (db != null)
     {
         db.Dispose();
         db = null;
     }
 }