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(); } }
public async Task InvalidateCache() { _cacheSince = new CacheSince(); WriteSinceToStorage().ConfigureAwait(false); }