IRazorCompilationService Interface¶
Specifies the contracts for a service that compiles Razor files.
- Namespace
Microsoft.AspNetCore.Mvc.Razor.Compilation- Assemblies
- Microsoft.AspNetCore.Mvc.Razor
Syntax¶
public interface IRazorCompilationService
-
interface
Microsoft.AspNetCore.Mvc.Razor.Compilation.IRazorCompilationService
Methods¶
-
Compile(Microsoft.AspNetCore.Mvc.Razor.Compilation.RelativeFileInfo)¶ Compiles the razor file located at <em>fileInfo</em>.
Arguments: fileInfo (Microsoft.AspNetCore.Mvc.Razor.Compilation.RelativeFileInfo) – A Microsoft.AspNetCore.Mvc.Razor.Compilation.RelativeFileInfoinstance that represents the file to compile.Return type: Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationResult Returns: A Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationResultthat represents the results of parsing and compiling the file.CompilationResult Compile(RelativeFileInfo fileInfo)
-