C# 클래스 AmazedSaint.Elastic.Templating.DynamicTemplateHost

The text template transformation engine is responsible for running the transformation process.
상속: System.MarshalByRefObject, ITextTemplatingEngineHost
파일 보기 프로젝트 열기: amazedsaint/ElasticObject 1 사용 예제들

공개 메소드들

메소드 설명
DynamicTemplateHost ( ) : System
GetHostOption ( string parameter ) : object

Gets the host options

LoadIncludeText ( string requestFileName, string &content, string &location ) : bool

The engine calls this method based on the optional include directive if the user has specified it in the text template.

LogErrors ( CompilerErrorCollection errors ) : void

Log the erros

Preprocess ( string input ) : string

Enhanced reg-ex based pre processing

ProcessTemplate ( string templateFileName, string outputFileName ) : CompilerErrorCollection

Process the input template

ProvideTemplatingAppDomain ( string content ) : AppDomain

Returns the app domain of the host

ResolveAssemblyReference ( string assemblyReference ) : string

The engine calls this method to resolve assembly references used in the generated transformation class project, and for the optional

ResolveDirectiveProcessor ( string processorName ) : Type

Resolves the directive processor

ResolveParameterValue ( string directiveId, string processorName, string parameterName ) : string

If a call to a directive in a text template does not provide a value for a required parameter, the directive processor can try to get it from the host by calling this method. This method can be called 0, 1, or more times.

ResolvePath ( string fileName ) : string

A directive processor can call this method if a file name does not have a path.

SetFileExtension ( string extension ) : void

The engine calls this method to change the extension of the generated text output file based on the optional output directive if the user specifies it in the text template.

SetOutputEncoding ( System encoding, bool fromOutputDirective ) : void

Sets the output encoding

메소드 상세

DynamicTemplateHost() 공개 메소드

public DynamicTemplateHost ( ) : System
리턴 System

GetHostOption() 공개 메소드

Gets the host options
public GetHostOption ( string parameter ) : object
parameter string
리턴 object

LoadIncludeText() 공개 메소드

The engine calls this method based on the optional include directive if the user has specified it in the text template.
public LoadIncludeText ( string requestFileName, string &content, string &location ) : bool
requestFileName string
content string
location string
리턴 bool

LogErrors() 공개 메소드

Log the erros
public LogErrors ( CompilerErrorCollection errors ) : void
errors System.CodeDom.Compiler.CompilerErrorCollection
리턴 void

Preprocess() 공개 메소드

Enhanced reg-ex based pre processing
public Preprocess ( string input ) : string
input string
리턴 string

ProcessTemplate() 공개 메소드

Process the input template
public ProcessTemplate ( string templateFileName, string outputFileName ) : CompilerErrorCollection
templateFileName string
outputFileName string
리턴 System.CodeDom.Compiler.CompilerErrorCollection

ProvideTemplatingAppDomain() 공개 메소드

Returns the app domain of the host
public ProvideTemplatingAppDomain ( string content ) : AppDomain
content string
리턴 System.AppDomain

ResolveAssemblyReference() 공개 메소드

The engine calls this method to resolve assembly references used in the generated transformation class project, and for the optional
public ResolveAssemblyReference ( string assemblyReference ) : string
assemblyReference string
리턴 string

ResolveDirectiveProcessor() 공개 메소드

Resolves the directive processor
public ResolveDirectiveProcessor ( string processorName ) : Type
processorName string
리턴 System.Type

ResolveParameterValue() 공개 메소드

If a call to a directive in a text template does not provide a value for a required parameter, the directive processor can try to get it from the host by calling this method. This method can be called 0, 1, or more times.
public ResolveParameterValue ( string directiveId, string processorName, string parameterName ) : string
directiveId string
processorName string
parameterName string
리턴 string

ResolvePath() 공개 메소드

A directive processor can call this method if a file name does not have a path.
public ResolvePath ( string fileName ) : string
fileName string
리턴 string

SetFileExtension() 공개 메소드

The engine calls this method to change the extension of the generated text output file based on the optional output directive if the user specifies it in the text template.
public SetFileExtension ( string extension ) : void
extension string
리턴 void

SetOutputEncoding() 공개 메소드

Sets the output encoding
public SetOutputEncoding ( System encoding, bool fromOutputDirective ) : void
encoding System
fromOutputDirective bool
리턴 void