public ContentMetadata(ContentMetadata source)
        {
            this.ContentName = source.ContentName;
            this.IsMain      = source.IsMain;
            this.ContentType = source.ContentType;
            this.FileName    = source.FileName;
            this.IsReady     = source.IsReady;

            this.Chunks = new List <ChunkMetadata>(source.Chunks.Count);
            this.Chunks.AddRange(source.Chunks.Select(c => new ChunkMetadata(c)));
        }
Пример #2
0
        private static List <ContentMetadata> CreateContent()
        {
            var mainContent = new ContentMetadata()
            {
                ContentName = string.Empty,

                ContentType = string.Empty,
                FileName    = string.Empty,

                Chunks = new List <ChunkMetadata>()
            };

            return(new List <ContentMetadata> {
                mainContent
            });
        }