IRazorCompilationService Interface

Summary

Specifies the contracts for a service that compiles Razor files.

Syntax

public interface IRazorCompilationService

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.Razor.Compilation.IRazorCompilationService

Methods

Compile(Microsoft.AspNet.Mvc.Razor.Compilation.RelativeFileInfo)

Compiles the razor file located at <paramref name=”fileInfo” />.

Arguments:
Return type:

Microsoft.AspNet.Mvc.Razor.Compilation.CompilationResult

Returns:

A [Microsoft.AspNet.Mvc.Razor.Compilation.CompilationResult](Microsoft.AspNet.Mvc.Razor.Compilation.CompilationResult.yml) that represents the results of parsing and compiling the file.

CompilationResult Compile(RelativeFileInfo fileInfo)