Exemple #1
0
 private async Task CheckAndCreateSinceFile()
 {
     var filename = GetSinceFileName();
     if (await _storage.Local.FileExistsAsync(filename))
     {
         var json = await _storage.Local.ReadAllTextAsync(filename);
         _cacheSince = await json.DeserialiseAsync<CacheSince>();
     }
     else
     {
         _cacheSince = new CacheSince();
     }
 }
Exemple #2
0
 public async Task InvalidateCache()
 {
     _cacheSince = new CacheSince();
     WriteSinceToStorage().ConfigureAwait(false);
 }