Exemplo n.º 1
0
        public void RemoveEmulator(Emulator emulator)
        {
            CheckDbState();

            lock (fileLock)
            {
                EmulatorsCollection.Delete(emulator.Id);
            }
        }
Exemplo n.º 2
0
        public void RemoveEmulator(Emulator emulator)
        {
            CheckDbState();

            using (Database.Engine.Locker.Reserved())
            {
                EmulatorsCollection.Delete(emulator.Id);
            }
        }
Exemplo n.º 3
0
        public void RemoveEmulator(IEnumerable <Emulator> emulators)
        {
            CheckDbState();
            if (emulators == null || emulators.Count() == 0)
            {
                return;
            }

            lock (fileLock)
            {
                foreach (var emulator in emulators)
                {
                    EmulatorsCollection.Delete(emulator.Id);
                }
            }
        }
Exemplo n.º 4
0
        public void RemoveEmulator(IEnumerable <Emulator> emulators)
        {
            CheckDbState();
            if (emulators == null || emulators.Count() == 0)
            {
                return;
            }

            using (Database.Engine.Locker.Reserved())
            {
                foreach (var emulator in emulators)
                {
                    EmulatorsCollection.Delete(emulator.Id);
                }
            }
        }