Пример #1
0
 private async Task SaveFastResume()
 {
     var fastResume = new BEncodedDictionary
     {
         { _manager.Torrent.InfoHash.ToHex(), _manager.SaveFastResume().Encode() }
     };
     // TODO: read from file
     await File.WriteAllBytesAsync(FastResumeFile, fastResume.Encode());
 }