internal RealmUsage(RealmContextFactory factory) { active_usages.Value++; Factory = factory; Realm = factory.createContext(); }
internal RealmWriteUsage(RealmContextFactory factory) : base(factory) { transaction = Realm.BeginWrite(); }
static void endBlockingSection(RealmContextFactory factory) { factory.blockingLock.Release(); Logger.Log(@"Restoring realm operations.", LoggingTarget.Database); }