/// <summary>
 /// Initializes the Selected queried Persistent Storage Method
 /// </summary>
 /// <returns>A boolean of whether the operation completed successfully or failed</returns>
 public bool Initialize()
 {
     if (StorageMethod == null)
     {
         return(false);
     }
     StorageMethod.Initialize();
     return(true);
 }
Esempio n. 2
0
 /// <summary>
 /// Initializs the Selected Cached Persistent Storage Method
 /// </summary>
 /// <returns>A boolean of whether the operation completed successfully or failed</returns>
 public bool Initialize()
 {
     if (StorageMethod == null)
     {
         return(false);
     }
     StorageMethod.Initialize();
     ((ICachedStorageMethod <T>)StorageMethod).UpdateCache();
     CurrentCache = ((ICachedStorageMethod <T>)StorageMethod).GetCache();
     return(true);
 }