Exemplo n.º 1
0
        public static async Task <T> Read <T>(string id)
        {
            var accessor = new StorageAccess();

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