Beispiel #1
0
        /// <summary>
        /// Creates an instance of EdataFile which doesn't reefer to any physical Edata file.
        /// </summary>
        /// <param name="header"></param>
        /// <param name="contentFiles"></param>
        public EdataFile(
            EdataHeader header,
            IEnumerable <IContentFile> contentFiles)
        {
            this.Header = header;
            //this.PostHeaderData = postHeaderData;
            this.contentFilesDictionary = contentFiles.ToDictionary(x => x.Path);
            //this.IsVirtual = true;

            AssignOwnership(this.ContentFiles);
        }
Beispiel #2
0
        /// <summary>
        /// Creates an instance of EdataFile which represent physical EdataFile witha a file path.
        /// </summary>
        /// <param name="path"></param>
        /// <param name="header"></param>
        /// <param name="contentFiles"></param>
        public EdataFile(
            String path,
            EdataHeader header,
            IEnumerable <IContentFile> contentFiles)
        {
            this.Path   = path;
            this.Header = header;
            this.contentFilesDictionary = contentFiles.ToDictionary(x => x.Path);
            //this.IsVirtual = false;

            AssignOwnership(this.ContentFiles);
        }