Example #1
0
        public static async Task <T> Read <T>(string id)
        {
            var accessor = new StorageAccess();

            return((T)(await accessor.Read(id, typeof(T))));
        }
Example #2
0
 // debug function to clear local data
 public static async Task ClearLocalStorage()
 {
     var accessor = new StorageAccess();
     await accessor.DeleteFile(_recentGamesName);
 }
Example #3
0
 public static async Task Write(IUniqueIdentifier obj)
 {
     // Write object to storage
     var accessor = new StorageAccess();
     await accessor.Write(obj.Id, obj);
 }