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

Inheritance: IHostService, IDisposable
ファイルを表示 Open project: dotnet/docfx Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
GetAllUids ( ) : ImmutableHashSet
GetModels ( DocumentType type ) : ImmutableList
HostService ( string baseDir, IEnumerable models ) : System
LoadIntermediateModel ( IncrementalBuildContext incrementalContext, string fileName ) : FileModel
LogDiagnostic ( string message, string file, string line ) : void
LogError ( string message, string file, string line ) : void
LogInfo ( string message, string file, string line ) : void
LogVerbose ( string message, string file, string line ) : void
LogWarning ( string message, string file, string line ) : void
LookupByUid ( string uid ) : ImmutableList
Markup ( string markdown, FileAndType ft ) : MarkupResult
Markup ( string markdown, FileAndType ft, bool omitParse ) : MarkupResult
Parse ( MarkupResult markupResult, FileAndType ft ) : MarkupResult
Reload ( IEnumerable models ) : void
ReloadModelsPerIncrementalChanges ( IncrementalBuildContext incrementalContext, IEnumerable changes, BuildPhase loadedAt ) : void
ReloadUnloadedModels ( IncrementalBuildContext incrementalContext, BuildPhase loadedAt ) : void
ReportDependencyFrom ( FileModel currentFileModel, string from, string type ) : void
ReportDependencyTo ( FileModel currentFileModel, string to, string type ) : void
SaveIntermediateModel ( IncrementalBuildContext incrementalContext ) : void
ValidateInputMetadata ( string sourceFile, object>.ImmutableDictionary metadata ) : void

Private Methods

Method Description
ContentAccessedHandler ( object sender, EventArgs e ) : void
GetFileLinkSource ( FileAndType ft, HtmlAgilityPack.HtmlDocument doc ) : ImmutableList>.ImmutableDictionary
GetUidLinkSources ( HtmlAgilityPack.HtmlDocument doc ) : ImmutableList>.ImmutableDictionary
HandleFileOrBaseDirChanged ( object sender, EventArgs e ) : void
HandleUidsChanged ( object sender, PropertyChangedEventArgs e ) : void
LoadCore ( IEnumerable models ) : void
MarkupCore ( string markdown, FileAndType ft, bool omitParse ) : MarkupResult
OnLruRemoving ( ModelWithCache m ) : void
ParseCore ( MarkupResult markupResult, FileAndType ft ) : MarkupResult
ReloadUnloadedModelsPerCondition ( IncrementalBuildContext incrementalContext, BuildPhase phase, bool>.Func condition ) : void
ReportDependencyCore ( string from, string to, string reportedBy, string type ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetAllUids() public method

public GetAllUids ( ) : ImmutableHashSet
return ImmutableHashSet

GetModels() public method

public GetModels ( DocumentType type ) : ImmutableList
type DocumentType
return ImmutableList

HostService() public method

public HostService ( string baseDir, IEnumerable models ) : System
baseDir string
models IEnumerable
return System

LoadIntermediateModel() public method

public LoadIntermediateModel ( IncrementalBuildContext incrementalContext, string fileName ) : FileModel
incrementalContext Microsoft.DocAsCode.Build.Engine.Incrementals.IncrementalBuildContext
fileName string
return Microsoft.DocAsCode.Plugins.FileModel

LogDiagnostic() public method

public LogDiagnostic ( string message, string file, string line ) : void
message string
file string
line string
return void

LogError() public method

public LogError ( string message, string file, string line ) : void
message string
file string
line string
return void

LogInfo() public method

public LogInfo ( string message, string file, string line ) : void
message string
file string
line string
return void

LogVerbose() public method

public LogVerbose ( string message, string file, string line ) : void
message string
file string
line string
return void

LogWarning() public method

public LogWarning ( string message, string file, string line ) : void
message string
file string
line string
return void

LookupByUid() public method

public LookupByUid ( string uid ) : ImmutableList
uid string
return ImmutableList

Markup() public method

public Markup ( string markdown, FileAndType ft ) : MarkupResult
markdown string
ft FileAndType
return Microsoft.DocAsCode.Plugins.MarkupResult

Markup() public method

public Markup ( string markdown, FileAndType ft, bool omitParse ) : MarkupResult
markdown string
ft FileAndType
omitParse bool
return Microsoft.DocAsCode.Plugins.MarkupResult

Parse() public method

public Parse ( MarkupResult markupResult, FileAndType ft ) : MarkupResult
markupResult Microsoft.DocAsCode.Plugins.MarkupResult
ft FileAndType
return Microsoft.DocAsCode.Plugins.MarkupResult

Reload() public method

public Reload ( IEnumerable models ) : void
models IEnumerable
return void

ReloadModelsPerIncrementalChanges() public method

public ReloadModelsPerIncrementalChanges ( IncrementalBuildContext incrementalContext, IEnumerable changes, BuildPhase loadedAt ) : void
incrementalContext Microsoft.DocAsCode.Build.Engine.Incrementals.IncrementalBuildContext
changes IEnumerable
loadedAt BuildPhase
return void

ReloadUnloadedModels() public method

public ReloadUnloadedModels ( IncrementalBuildContext incrementalContext, BuildPhase loadedAt ) : void
incrementalContext Microsoft.DocAsCode.Build.Engine.Incrementals.IncrementalBuildContext
loadedAt BuildPhase
return void

ReportDependencyFrom() public method

public ReportDependencyFrom ( FileModel currentFileModel, string from, string type ) : void
currentFileModel Microsoft.DocAsCode.Plugins.FileModel
from string
type string
return void

ReportDependencyTo() public method

public ReportDependencyTo ( FileModel currentFileModel, string to, string type ) : void
currentFileModel Microsoft.DocAsCode.Plugins.FileModel
to string
type string
return void

SaveIntermediateModel() public method

public SaveIntermediateModel ( IncrementalBuildContext incrementalContext ) : void
incrementalContext Microsoft.DocAsCode.Build.Engine.Incrementals.IncrementalBuildContext
return void

ValidateInputMetadata() public method

public ValidateInputMetadata ( string sourceFile, object>.ImmutableDictionary metadata ) : void
sourceFile string
metadata object>.ImmutableDictionary
return void