RazorPreCompileModule Class

Summary

An @!:ICompileModule- implementation that pre-compiles Razor views in the application.

Syntax

public abstract class RazorPreCompileModule : ICompileModule

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.RazorPreCompileModule

Constructors

RazorPreCompileModule(System.IServiceProvider)

Instantiates a new [Microsoft.AspNet.Mvc.RazorPreCompileModule](Microsoft.AspNet.Mvc.RazorPreCompileModule.yml) instance.

Arguments:
  • services (System.IServiceProvider) – The [System.IServiceProvider]() for the application.
public RazorPreCompileModule(IServiceProvider services)

Properties

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; protected set; }

Methods

AfterCompile(AfterCompileContext)
Arguments:
  • context (AfterCompileContext) –
public void AfterCompile(AfterCompileContext context)
BeforeCompile(BeforeCompileContext)
Arguments:
  • context (BeforeCompileContext) –
public virtual void BeforeCompile(BeforeCompileContext context)