예제 #1
0
        public void CloseDatabase(IDatabaseReference databaseReference)
        {
            if (databaseReference == null)
            {
                return;
            }

            databaseReference?.BeforeDispose();

            Databases.Remove(databaseReference);

            databaseReference?.Dispose();

            GC.Collect();
            GC.WaitForPendingFinalizers();
            GC.Collect();
        }
예제 #2
0
 public void AddDatabase(IDatabaseReference databaseReference)
 {
     Databases.Add(databaseReference);
 }