public RealmFileStore(RealmAccess realm, Storage storage) { this.realm = realm; Storage = storage.GetStorageForDirectory(@"files"); Store = new StorageBackedResourceStore(Storage); }
/// <summary> /// Construct a new instance of live realm data. /// </summary> /// <param name="data">The realm data.</param> /// <param name="realm">The realm factory the data was sourced from. May be null for an unmanaged object.</param> public RealmLive(T data, RealmAccess realm) : base(data.ID) { this.data = data; this.realm = realm; dataIsFromUpdateThread = ThreadSafety.IsUpdateThread; }
public static Live <T> ToLive <T>(this T realmObject, RealmAccess realm) where T : RealmObject, IHasGuidPrimaryKey { return(new RealmLive <T>(realmObject, realm)); }
protected RealmArchiveModelImporter(Storage storage, RealmAccess realm) { Realm = realm; Files = new RealmFileStore(realm, storage); }
public ModelManager(Storage storage, RealmAccess realm) { realmFileStore = new RealmFileStore(realm, storage); Realm = realm; }