C# Class Microsoft.DocAsCode.Build.Engine.TemplateManager

Exibir arquivo Open project: dotnet/docfx Class Usage Examples

Public Methods

Method Description
GetTemplateProcessor ( DocumentBuildContext context, int maxParallelism ) : TemplateProcessor
GetTemplatesHash ( ) : string
ProcessTheme ( string outputDirectory, bool overwrite ) : void
TemplateManager ( Assembly assembly, string rootNamespace, List templates, List themes, string baseDirectory ) : System
TryExportTemplateFiles ( string outputDirectory, string regexFilter = null ) : bool

Private Methods

Method Description
Copy ( Action streamHandler, string filePath, bool overwrite ) : void
CopyResource ( Stream stream, string filePath, bool overwrite ) : void
CreateTemplateResource ( IEnumerable resources ) : CompositeResourceCollectionWithOverridden
TryExportResourceFiles ( IEnumerable resourceNames, string outputDirectory, bool overwrite, string regexFilter = null ) : bool

Method Details

GetTemplateProcessor() public method

public GetTemplateProcessor ( DocumentBuildContext context, int maxParallelism ) : TemplateProcessor
context DocumentBuildContext
maxParallelism int
return TemplateProcessor

GetTemplatesHash() public method

public GetTemplatesHash ( ) : string
return string

ProcessTheme() public method

public ProcessTheme ( string outputDirectory, bool overwrite ) : void
outputDirectory string
overwrite bool
return void

TemplateManager() public method

public TemplateManager ( Assembly assembly, string rootNamespace, List templates, List themes, string baseDirectory ) : System
assembly System.Reflection.Assembly
rootNamespace string
templates List
themes List
baseDirectory string
return System

TryExportTemplateFiles() public method

public TryExportTemplateFiles ( string outputDirectory, string regexFilter = null ) : bool
outputDirectory string
regexFilter string
return bool