Exemple #1
0
 public Task <Tuple <long, DateTime, long> > GetFileLastModifiedAsync(long prefixid, string path, long lastfilesetid, bool includeLength)
 {
     return(RunOnMain(() =>
     {
         var id = m_database.GetFileLastModified(prefixid, path, lastfilesetid, includeLength, out var lastModified, out var length, m_transaction);
         return new Tuple <long, DateTime, long>(id, lastModified, length);
     }));
 }
        public Task <KeyValuePair <long, DateTime> > GetFileLastModifiedAsync(string path, long lastfilesetid)
        {
            return(RunOnMain(() =>
            {
                DateTime lastModified;
                var id = m_database.GetFileLastModified(path, lastfilesetid, out lastModified, m_transaction);

                return new KeyValuePair <long, DateTime>(id, lastModified);
            }));
        }