RazorPreCompiler Class¶
Constructors¶
-
RazorPreCompiler
(BeforeCompileContext, IAssemblyLoadContextAccessor, IFileProvider, IMemoryCache, CompilationSettings)¶ Arguments: - compileContext (BeforeCompileContext) –
- loadContextAccessor (IAssemblyLoadContextAccessor) –
- fileProvider (IFileProvider) –
- precompilationCache (IMemoryCache) –
- compilationSettings (CompilationSettings) –
public RazorPreCompiler(BeforeCompileContext compileContext, IAssemblyLoadContextAccessor loadContextAccessor, IFileProvider fileProvider, IMemoryCache precompilationCache, CompilationSettings compilationSettings)
-
Properties¶
-
CompilationSettings
()¶ Return type: CompilationSettings protected CompilationSettings CompilationSettings { get; }
-
CompileContext
()¶ Return type: BeforeCompileContext protected BeforeCompileContext CompileContext { get; }
-
FileExtension
()¶ Return type: System.String protected virtual string FileExtension { get; }
-
FileProvider
()¶ Return type: IFileProvider protected IFileProvider FileProvider { get; }
-
GenerateSymbols
()¶ Gets or sets a value that determines if symbols (.pdb) file for the precompiled views is generated.
Return type: System.Boolean public bool GenerateSymbols { get; set; }
-
LoadContext
()¶ Return type: IAssemblyLoadContext protected IAssemblyLoadContext LoadContext { get; }
-
MaxDegreesOfParallelism
()¶ Return type: System.Int32 protected virtual int MaxDegreesOfParallelism { get; }
-
PreCompilationCache
()¶ Return type: IMemoryCache protected IMemoryCache PreCompilationCache { get; }
-
TagHelperTypeResolver
()¶ Return type: TagHelperTypeResolver protected virtual TagHelperTypeResolver TagHelperTypeResolver { get; }
-
Methods¶
-
Microsoft.AspNet.Mvc.Razor.Precompilation.RazorPreCompiler.CompileViews()
public virtual void CompileViews()
-
Microsoft.AspNet.Mvc.Razor.Precompilation.RazorPreCompiler.CreateFileInfoCollection()
Return type: Microsoft.AspNet.Mvc.Razor.Precompilation.RazorFileInfoCollection protected virtual RazorFileInfoCollection CreateFileInfoCollection()
-
GeneratePrecompiledAssembly
(System.Collections.Generic.IEnumerable<SyntaxTree>, System.Collections.Generic.IEnumerable<Microsoft.AspNet.Mvc.Razor.Precompilation.RazorFileInfo>)¶ Arguments: - syntaxTrees (System.Collections.Generic.IEnumerable{SyntaxTree}) –
- razorFileInfos (System.Collections.Generic.IEnumerable{Microsoft.AspNet.Mvc.Razor.Precompilation.RazorFileInfo}) –
Return type: Microsoft.AspNet.Mvc.Razor.Precompilation.RazorFileInfoCollection
protected virtual RazorFileInfoCollection GeneratePrecompiledAssembly(IEnumerable<SyntaxTree> syntaxTrees, IEnumerable<RazorFileInfo> razorFileInfos)
-
GetCacheEntry
(Microsoft.AspNet.Mvc.Razor.Compilation.RelativeFileInfo)¶ Arguments: Return type: Microsoft.AspNet.Mvc.Razor.Precompilation.PrecompilationCacheEntry
protected virtual PrecompilationCacheEntry GetCacheEntry(RelativeFileInfo fileInfo)
-
Microsoft.AspNet.Mvc.Razor.Precompilation.RazorPreCompiler.GetRazorHost()
Return type: Microsoft.AspNet.Mvc.Razor.IMvcRazorHost protected IMvcRazorHost GetRazorHost()
-