RazorEngine


IConfigurationBuilder

Defined in RazorEngine.dll.

Defines the required contract for implementing a configuration builder.

Instance members

Instance memberDescription
ActivateUsing(activator)
Signature: activator:IActivator -> IConfigurationBuilder
Modifiers: abstract

Sets the activator.

Returns: The current configuration builder.

ActivateUsing()
Signature: unit -> IConfigurationBuilder
Modifiers: abstract
Type parameters: 'TActivator

Sets the activator.

Returns: The current configuration builder.

ActivateUsing(activator)
Signature: activator:Func<InstanceContext,ITemplate> -> IConfigurationBuilder
Modifiers: abstract

Sets the activator.

Returns: The current configuration builder.

AddInspector()
Signature: unit -> IConfigurationBuilder
Modifiers: abstract
Type parameters: 'TInspector

Adds the specified code inspector.

Returns: The current configuration builder.

AddInspector(inspector)
Signature: inspector:ICodeInspector -> IConfigurationBuilder
Modifiers: abstract

Adds the specified code inspector.

Returns: The current configuration builder.

CompileUsing(factory)
Signature: factory:ICompilerServiceFactory -> IConfigurationBuilder
Modifiers: abstract

Sets the compiler service factory.

Returns: The current configuration builder.

CompileUsing()
Signature: unit -> IConfigurationBuilder
Modifiers: abstract
Type parameters: 'TCompilerServiceFactory

Sets the compiler service factory.

Returns: The current configuration builder.

DisableTempFileLocking()
Signature: unit -> IConfigurationBuilder
Modifiers: abstract

Loads all dynamic assemblies with Assembly.Load(byte[]). This prevents temp files from being locked (which makes it impossible for RazorEngine to delete them). At the same time this completely shuts down any sandboxing/security. Use this only if you have a limited amount of static templates (no modifications on rumtime), which you fully trust and when a seperate AppDomain is no solution for you!. This option will also hurt debugging. OK, YOU HAVE BEEN WARNED.

Returns: The current configuration builder.

EncodeUsing(factory)
Signature: factory:IEncodedStringFactory -> IConfigurationBuilder
Modifiers: abstract

Sets the encoded string factory.

Returns: The current configuration builder.

EncodeUsing()
Signature: unit -> IConfigurationBuilder
Modifiers: abstract
Type parameters: 'TEncodedStringFactory

Sets the encoded string factory.

Returns: The current configuration builder.

IncludeNamespaces(namespaces)
Signature: (namespaces:string []) -> IConfigurationBuilder
Modifiers: abstract

Includes the specified namespaces

Returns: The current configuration builder.

ManageUsing()
Signature: unit -> IConfigurationBuilder
Modifiers: abstract
Type parameters: 'TManager

Sets the manager used to locate unknown templates.

Returns: The current configuration builder.

ManageUsing(manager)
Signature: manager:ITemplateManager -> IConfigurationBuilder
Modifiers: abstract

Sets the manager used to locate unknown templates.

Returns: The current configuration builder.

ResolveUsing()
Signature: unit -> IConfigurationBuilder
Modifiers: abstract
Type parameters: 'TResolver

Sets the resolve used to locate unknown templates.

Returns: The current configuration builder.

ResolveUsing(resolver)
Signature: resolver:ITemplateResolver -> IConfigurationBuilder
Modifiers: abstract

Sets the resolver used to locate unknown templates.

Returns: The current configuration builder.

ResolveUsing(resolver)
Signature: resolver:Func<string,string> -> IConfigurationBuilder
Modifiers: abstract

Sets the resolver delegate used to locate unknown templates.

Returns: The current configuration builder.

UseDefaultActivator()
Signature: unit -> IConfigurationBuilder
Modifiers: abstract

Sets the default activator.

Returns: The current configuration builder.

UseDefaultCompilerServiceFactory()
Signature: unit -> IConfigurationBuilder
Modifiers: abstract

Sets the default compiler service factory.

Returns: The current configuration builder.

UseDefaultEncodedStringFactory()
Signature: unit -> IConfigurationBuilder
Modifiers: abstract

Sets the default encoded string factory.

Returns: The current configuration builder.

WithBaseTemplateType(baseTemplateType)
Signature: baseTemplateType:Type -> IConfigurationBuilder
Modifiers: abstract

Sets the base template type.

Returns: The current configuration builder/.

WithCodeLanguage(language)
Signature: language:Language -> IConfigurationBuilder
Modifiers: abstract

Sets the code language.

Returns: The current configuration builder.

WithEncoding(encoding)
Signature: encoding:Encoding -> IConfigurationBuilder
Modifiers: abstract

Sets the encoding.

Returns: The current configuration builder.

Fork me on GitHub