Beispiel #1
0
 /// <summary>
 /// Fills a partial storable object returned from a query.
 /// </summary>
 /// <param name="storable">the object to fill.</param>
 public void Fill(IStorable storable)
 {
     lock (mutex) {
         bool success = db.RunInTransaction(() => {
             try {
                 DocumentsSerializer.FillObject(storable, db);
                 return(true);
             } catch (Exception ex) {
                 Log.Exception(ex);
                 return(false);
             }
         });
         if (!success)
         {
             throw new StorageException(Catalog.GetString("Error filling object from the storage"));
         }
     }
 }