예제 #1
0
        public static CacheHeader Read(Stream stream)
        {
            CacheHeader header;

            using (var reader = new BinaryReader(stream, Encoding.Default, true))
            {
                var baseHeader   = Read(reader);
                var customHeader = TranscriptCacheCustomHeader.Read(reader);
                header = new CacheHeader(baseHeader, customHeader);
            }

            return(header);
        }
예제 #2
0
 public CacheHeader(Header header, TranscriptCacheCustomHeader customHeader) : base(header.Identifier,
                                                                                    header.SchemaVersion, header.DataVersion, header.Source, header.CreationTimeTicks,
                                                                                    header.Assembly)
 {
     Custom = customHeader;
 }