예제 #1
0
 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);
 }
예제 #2
0
 internal static IndexInfo GetIndexInfo(this OrganizationalContainer organizationalContainer) => cache[organizationalContainer];
예제 #3
0
 public OrganizationalContainerRenderer(OrganizationalContainer input) : base(input)
 {
     this.input = input;
     indexInfo  = JsonConvert.DeserializeObject <IndexInfo>(File.ReadAllText(input.Path + IndexInfo.FilenameExtension, Encoding.UTF8));
 }
예제 #4
0
 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));
        }