private void Leave(OrganizationalContainer organizationalContainer) { contentIO.CreateOutputFile(organizationalContainer.Path + IndexInfo.FilenameExtension, organizationalContainer.GetIndexInfo().GetOutputFileContents()); contentIO.CreateOutputFile(organizationalContainer.Path + WwwRootAssetContainerInfo.FilenameExtension, organizationalContainer.GetWwwRootAssetContainerInfo().GetOutputFileContents()); contentIO.CreateOutputFile(organizationalContainer.Path + OrganizationInfo.FilenameExtension, organizationalContainer.GetOrganizationInfo().GetOutputFileContents()); Leave(organizationalContainer, organizationalContainer.ContentMetadata); }
internal static IndexInfo GetIndexInfo(this OrganizationalContainer organizationalContainer) => cache[organizationalContainer];
public OrganizationalContainerRenderer(OrganizationalContainer input) : base(input) { this.input = input; indexInfo = JsonConvert.DeserializeObject <IndexInfo>(File.ReadAllText(input.Path + IndexInfo.FilenameExtension, Encoding.UTF8)); }
private void Visit(OrganizationalContainer organizationalContainer) => contentIO.CreateOutputDirectory(organizationalContainer.Path);
internal static void InitializeItemInfoExtensions(this OrganizationalContainer organizationalContainer) { var id = Path.GetFileName(organizationalContainer.Path); cache.Add(organizationalContainer, new ItemInfo(id, id)); }