Beispiel #1
0
        public void AddEmulator(Emulator emulator)
        {
            CheckDbState();

            using (Database.Engine.Locker.Reserved())
            {
                EmulatorsCollection.Insert(emulator);
            }
        }
Beispiel #2
0
        public void AddEmulator(Emulator emulator)
        {
            CheckDbState();

            lock (fileLock)
            {
                EmulatorsCollection.Insert(emulator);
            }
        }
        public void AddEmulator(IEnumerable <Emulator> emulators)
        {
            CheckDbState();
            if (emulators == null || emulators.Count() == 0)
            {
                return;
            }

            lock (fileLock)
            {
                foreach (var emulator in emulators)
                {
                    EmulatorsCollection.Insert(emulator);
                }
            }
        }