IsolatedTemplateService
Provides template parsing and compilation in an isolated application domain.
Constructors
Constructor | Description |
new()
Signature: unit -> unit
|
Initialises a new instance of IsolatedTemplateService |
new(language)
Signature: language:Language -> unit
|
Initialises a new instance of IsolatedTemplateService |
new(encoding)
Signature: encoding:Encoding -> unit
|
Initialises a new instance of IsolatedTemplateService |
new(appDomainFactory)
Signature: appDomainFactory:IAppDomainFactory -> unit
|
Initialises a new instance of IsolatedTemplateService |
new(appDomainFactory)
Signature: appDomainFactory:Func<AppDomain> -> unit
|
Initialises a new instance of IsolatedTemplateService. |
new(...)
Signature: (language:Language * encoding:Encoding * appDomainFactory:IAppDomainFactory) -> unit
|
Initialises a new instance of IsolatedTemplateService |
new(language, appDomainFactory)
Signature: (language:Language * appDomainFactory:Func<AppDomain>) -> unit
|
Initialises a new instance of IsolatedTemplateService. |
new(...)
Signature: (language:Language * encoding:Encoding * appDomainFactory:Func<AppDomain>) -> unit
|
Initialises a new instance of IsolatedTemplateService. |
new(encoding, appDomainFactory)
Signature: (encoding:Encoding * appDomainFactory:Func<AppDomain>) -> unit
|
Initialises a new instance of IsolatedTemplateService. |
Instance members
Instance member | Description |
AddNamespace(ns)
Signature: ns:string -> unit
Modifiers: abstract |
Adds a namespace that will be imported into the template. |
Compile(razorTemplate, modelType, name)
Signature: (razorTemplate:string * modelType:Type * name:string) -> unit
Modifiers: abstract |
Compiles the specified template. |
CreateTemplate(...)
Signature: (razorTemplate:string * templateType:Type * model:obj) -> ITemplate
Modifiers: abstract |
Backwards Compat Returns: |
CreateTemplates(...)
Signature: (razorTemplates:IEnumerable<string> * templateTypes:IEnumerable<Type> * models:IEnumerable<obj> * parallel:bool) -> IEnumerable<ITemplate>
Modifiers: abstract |
Backwards Compat Returns: |
CreateTemplateType(...)
Signature: (razorTemplate:string * modelType:Type) -> Type
Modifiers: abstract |
Backwards compat Returns: |
CreateTemplateTypes(...)
Signature: (razorTemplates:IEnumerable<string> * modelTypes:IEnumerable<Type> * parallel:bool) -> IEnumerable<Type>
Modifiers: abstract |
Backwards compat. Returns: |
Dispose()
Signature: unit -> unit
Modifiers: abstract |
Releases resources used by this instance. |
GetTemplate(razorTemplate, model, name)
Signature: (razorTemplate:string * model:'T * name:string) -> ITemplate
Type parameters: 'T |
Gets an instance of the template using the cached compiled type, or compiles the template type if it does not exist in the cache. Returns: An instance of . |
GetTemplate(...)
Signature: (razorTemplate:string * model:obj * cacheName:string) -> ITemplate
Modifiers: abstract |
Backwards Compat Returns: |
GetTemplates(...)
Signature: (razorTemplates:IEnumerable<string> * models:IEnumerable<obj> * cacheNames:IEnumerable<string> * parallel:bool) -> IEnumerable<ITemplate>
Modifiers: abstract |
Backwards Compat Returns: |
HasTemplate(name)
Signature: name:string -> bool
Modifiers: abstract |
Returns whether or not a template by the specified name has been created already. Returns: Whether or not the template has been created. |
Parse(...)
Signature: (razorTemplate:string * model:obj * viewBag:DynamicViewBag * cacheName:string) -> string
Modifiers: abstract Type parameters: 'T |
Parses and returns the result of the specified string template. Returns: The string result of the template. |
Parse(...)
Signature: (razorTemplate:string * model:obj * viewBag:DynamicViewBag * cacheName:string) -> string
Modifiers: abstract |
Backwards Compat Returns: |
ParseMany(...)
Signature: (razorTemplates:IEnumerable<string> * models:IEnumerable<obj> * viewBags:IEnumerable<DynamicViewBag> * cacheNames:IEnumerable<string> * parallel:bool) -> IEnumerable<string>
Modifiers: abstract |
Backwards compat Returns: |
RemoveTemplate(cacheName)
Signature: cacheName:string -> bool
Modifiers: abstract |
Remove a template by the specified name from the cache. Returns: Whether or not the template has been removed. |
Run(name, model, viewBag)
Signature: (name:string * model:obj * viewBag:DynamicViewBag) -> string
Modifiers: abstract |
Backwards compat Returns: |
Run(template, viewBag)
Signature: (template:ITemplate * viewBag:DynamicViewBag) -> string
Modifiers: abstract |
Backwards compat. Returns: |