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