Exemple #1
0
        public void Close()
        {
            lock (_database.SyncObject)
            {
                if (_database != null)
                {
                    _database.CloseConnection();
                }

                if (_eventsThread != null)
                {
                    // we don't have here clue about disposing vs. finalizer
                    if (!Environment.HasShutdownStarted)
                    {
                        _eventsThread.Join();
                    }

                    _eventsThread = null;
                }
            }
        }
Exemple #2
0
 public void Close()
 {
     Volatile.Write(ref _closing, true);
     _database.CloseConnection();
 }
 public void Dispose()
 {
     _disposing = true;
     _database.CloseConnection();
 }
Exemple #4
0
 public Task Close(AsyncWrappingCommonArgs async)
 {
     Volatile.Write(ref _closing, true);
     return(_database.CloseConnection(async));
 }
 public void Dispose()
 {
     _database.CloseConnection();
 }