private void Initialize(OrganizationalContainer fallbackContainer) { { var path = Path + ContentMetadata.FilenameExtension; var fallback = fallbackContainer?.ContentMetadata; ContentMetadata = File.Exists(path) ? new ContentMetadata(path, Container, this, fallback) : fallback; } { var path = Path + IndexTemplate.FilenameExtension; IndexTemplate = File.Exists(path) ? new IndexTemplate(path, Container, this) : fallbackContainer?.IndexTemplate; } { var path = Path + LogoTemplate.FilenameExtension; LogoTemplate = File.Exists(path) ? new LogoTemplate(path, Container, this) : fallbackContainer?.LogoTemplate; } { var path = Path + TopicTemplate.FilenameExtension; TopicTemplate = File.Exists(path) ? new TopicTemplate(path, Container, this) : fallbackContainer?.TopicTemplate; } }
protected OrganizationalContainer(string path, OrganizationalContainer container) : base(path, container) { Initialize(container); }