Interface IHostService
Namespace:Microsoft.DocAsCode.Plugins
Assembly:Microsoft.DocAsCode.Plugins.dll
Syntax
public interface IHostService
Properties
Declaration
bool HasMetadataValidation { get; }
Property Value
IncrementalInfos
Declaration
ImmutableDictionary<string, FileIncrementalInfo> IncrementalInfos { get; }
Property Value
Processor
Declaration
IDocumentProcessor Processor { get; }
Property Value
SourceFiles
Declaration
ImmutableDictionary<string, FileAndType> SourceFiles { get; }
Property Value
Type |
Description |
System.Collections.Immutable.ImmutableDictionary<String, FileAndType> |
|
TableOfContentRestructions
Declaration
ImmutableList<TreeItemRestructure> TableOfContentRestructions { get; set; }
Property Value
VersionName
current version's name, String.Empty for default version
Declaration
string VersionName { get; }
Property Value
VersionOutputFolder
current version's output base folder
Declaration
string VersionOutputFolder { get; }
Property Value
Methods
GetAllUids()
Declaration
ImmutableHashSet<string> GetAllUids()
Returns
Type |
Description |
System.Collections.Immutable.ImmutableHashSet<String> |
|
GetModels(Nullable<DocumentType>)
Declaration
ImmutableList<FileModel> GetModels(DocumentType? type = null)
Parameters
Returns
Type |
Description |
System.Collections.Immutable.ImmutableList<FileModel> |
|
LogDiagnostic(String, String, String)
Declaration
void LogDiagnostic(string message, string file = null, string line = null)
Parameters
LogError(String, String, String)
Declaration
void LogError(string message, string file = null, string line = null)
Parameters
LogInfo(String, String, String)
Declaration
void LogInfo(string message, string file = null, string line = null)
Parameters
LogVerbose(String, String, String)
Declaration
void LogVerbose(string message, string file = null, string line = null)
Parameters
LogWarning(String, String, String)
Declaration
void LogWarning(string message, string file = null, string line = null)
Parameters
LookupByUid(String)
Declaration
ImmutableList<FileModel> LookupByUid(string uid)
Parameters
Type |
Name |
Description |
String |
uid |
|
Returns
Type |
Description |
System.Collections.Immutable.ImmutableList<FileModel> |
|
Markup(String, FileAndType)
Declaration
MarkupResult Markup(string markdown, FileAndType ft)
Parameters
Returns
Markup(String, FileAndType, Boolean)
Declaration
MarkupResult Markup(string markdown, FileAndType ft, bool omitParse)
Parameters
Returns
Parse(MarkupResult, FileAndType)
Declaration
MarkupResult Parse(MarkupResult markupResult, FileAndType ft)
Parameters
Returns
ReportDependencyFrom(FileModel, String, String)
Declaration
void ReportDependencyFrom(FileModel currentFileModel, string from, string type)
Parameters
Type |
Name |
Description |
FileModel |
currentFileModel |
filemodel of 'to' node
|
String |
from |
'from' node's file path from working directory or file path relative to 'to' filemodel
|
String |
type |
dependency type
|
ReportDependencyFrom(FileModel, String, String, String)
Declaration
void ReportDependencyFrom(FileModel currentFileModel, string from, string fromType, string type)
Parameters
Type |
Name |
Description |
FileModel |
currentFileModel |
filemodel of 'to' node
|
String |
from |
'from' node's value
|
String |
fromType |
'from' node's type, it could be file or reference type
|
String |
type |
dependency type
|
ReportDependencyTo(FileModel, String, String)
Declaration
void ReportDependencyTo(FileModel currentFileModel, string to, string type)
Parameters
Type |
Name |
Description |
FileModel |
currentFileModel |
filemodel of 'from' node
|
String |
to |
'to' node's file path from working directory or file path relative to 'from' filemodel
|
String |
type |
dependency type
|
ReportDependencyTo(FileModel, String, String, String)
Declaration
void ReportDependencyTo(FileModel currentFileModel, string to, string toType, string type)
Parameters
Type |
Name |
Description |
FileModel |
currentFileModel |
filemodel of 'from' node
|
String |
to |
'to' node's value
|
String |
toType |
'to' node's type, it could be file or reference type
|
String |
type |
dependency type
|
ReportReference(FileModel, String, String)
Declaration
void ReportReference(FileModel currentFileModel, string reference, string referenceType)
Parameters
Type |
Name |
Description |
FileModel |
currentFileModel |
filemodel
|
String |
reference |
the reference that the 'filemodel' could provide
|
String |
referenceType |
the type of the reference
|
Declaration
void ValidateInputMetadata(string file, ImmutableDictionary<string, object> metadata)
Parameters
Type |
Name |
Description |
String |
file |
|
System.Collections.Immutable.ImmutableDictionary<String, Object> |
metadata |
|
Extension Methods