public Task <FileEntryData> GetFileEntryAsync(string path, long lastfilesetid) { return(RunOnMain(() => { DateTime oldModified; long lastFileSize; string oldMetahash; long oldMetasize; var id = m_database.GetFileEntry(path, lastfilesetid, out oldModified, out lastFileSize, out oldMetahash, out oldMetasize); return id < 0 ? null : new FileEntryData() { id = id, modified = oldModified, filesize = lastFileSize, metahash = oldMetahash, metasize = oldMetasize }; })); }