Ejemplo n.º 1
0
        public RealmFileStore(RealmAccess realm, Storage storage)
        {
            this.realm = realm;

            Storage = storage.GetStorageForDirectory(@"files");
            Store   = new StorageBackedResourceStore(Storage);
        }
Ejemplo n.º 2
0
        /// <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;
        }
Ejemplo n.º 3
0
 public static Live <T> ToLive <T>(this T realmObject, RealmAccess realm)
     where T : RealmObject, IHasGuidPrimaryKey
 {
     return(new RealmLive <T>(realmObject, realm));
 }
Ejemplo n.º 4
0
        protected RealmArchiveModelImporter(Storage storage, RealmAccess realm)
        {
            Realm = realm;

            Files = new RealmFileStore(realm, storage);
        }
Ejemplo n.º 5
0
 public ModelManager(Storage storage, RealmAccess realm)
 {
     realmFileStore = new RealmFileStore(realm, storage);
     Realm          = realm;
 }