RazorEngine


WatchingResolvePathTemplateManager

Defined in RazorEngine.dll.

A ResolvePathTemplateManager which watches for changes in the filesytem and invalides the corresponding cache entries. WARNING: Use this only on AppDomains you recycle regularly, or to improve the debugging experience. Never use this in production without any recycle strategy.

Constructors

ConstructorDescription
new(layoutRoot, cache)
Signature: (layoutRoot:IEnumerable<string> * cache:InvalidatingCachingProvider) -> unit

Creates a new WatchingResolvePathTemplateManager.

Instance members

Instance memberDescription
AddDynamic(key, source)
Signature: (key:ITemplateKey * source:ITemplateSource) -> unit
Modifiers: abstract

Add a dynamic template (throws an exception)

Dispose()
Signature: unit -> unit
Modifiers: abstract

Dispose the current manager.

GetKey(name, resolveType, context)
Signature: (name:string * resolveType:ResolveType * context:ITemplateKey) -> ITemplateKey
Modifiers: abstract

Gets a key for the given template.

Returns:

Resolve(key)
Signature: key:ITemplateKey -> ITemplateSource
Modifiers: abstract

Resolve a template.

Returns:

Fork me on GitHub