public void SaveCassetteManifest(CassetteManifest cassetteManifest)
 {
     using (var fileStream = file.Open(FileMode.Create, FileAccess.Write, FileShare.ReadWrite))
     {
         var writer = new CassetteManifestWriter(fileStream);
         writer.Write(cassetteManifest);
     }
 }
        void WriteManifestToStream(CassetteManifest manifest, Stream stream)
        {
            var writer = new CassetteManifestWriter(stream);

            writer.Write(manifest);
        }