public Task <Tuple <bool, long> > AddMetadatasetAsync(string hash, long size, long blocksetid) { return(RunOnMain(() => { long metadataid; var n = m_database.AddMetadataset(hash, size, blocksetid, out metadataid, m_transaction); return new Tuple <bool, long>(n, metadataid); })); }