Exemplo n.º 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;
                }
            }
        }
Exemplo n.º 2
0
 public void Close()
 {
     Volatile.Write(ref _closing, true);
     _database.CloseConnection();
 }
Exemplo n.º 3
0
 public void Dispose()
 {
     _disposing = true;
     _database.CloseConnection();
 }
Exemplo n.º 4
0
 public Task Close(AsyncWrappingCommonArgs async)
 {
     Volatile.Write(ref _closing, true);
     return(_database.CloseConnection(async));
 }
 public void Dispose()
 {
     _database.CloseConnection();
 }