Hello, I need to keep syncronized in the memory of my program the contents of a file inside my dropbox, I was thinking on getting constantly the Revision of that file and if it's different, then, download the content. Ignoring if that's the best way to go. It's a really light file, less than 10KB of text.
So, I was thinking this way, in a timer:
if (!workingAsync)
{
workingAsync = true;
string newRev = (await dBox.Files.GetMetadataAsync("/File.txt")).AsFile.Rev;
workingAsync = false;
if (oldRev != newRev)
{
oldRev = newRev;
DownloadUpdatedFile();
}
}
But I don't know if there's a better way of performing this check.
Thanks for any advice.