C# Класс T4Scaffolding.Core.Templating.DynamicTextTemplatingEngineHost

Наследование: System.MarshalByRefObject, ITextTemplatingEngineHost, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddFindableAssembly ( string location ) : void
Dispose ( ) : void
DynamicTextTemplatingEngineHost ( ) : System
GetHostOption ( string optionName ) : object

Called by the Engine to enquire about the processing options you require.

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

The included text is returned in the content parameter. If the host searches the registry for the location of include files, or if the host searches multiple locations by default, the host can return the final path of the include file in the location parameter.

LogErrors ( CompilerErrorCollection errors ) : void
ProvideTemplatingAppDomain ( string content ) : AppDomain
ResolveAssemblyReference ( string assemblyReference ) : string

The engine calls this method to resolve assembly references used in the generated transformation class project and for the optional assembly directive if the user has specified it in the text template. This method can be called 0, 1, or more times.

ResolveDirectiveProcessor ( string processorName ) : Type
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. The host can attempt to provide path information by searching specific paths for the file and returning the file and path if found. This method can be called 0, 1, or more times.

SetFileExtension ( string extension ) : void
SetOutputEncoding ( Encoding encoding, bool fromOutputDirective ) : void

Описание методов

AddFindableAssembly() публичный Метод

public AddFindableAssembly ( string location ) : void
location string
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

DynamicTextTemplatingEngineHost() публичный Метод

public DynamicTextTemplatingEngineHost ( ) : System
Результат System

GetHostOption() публичный Метод

Called by the Engine to enquire about the processing options you require.
public GetHostOption ( string optionName ) : object
optionName string
Результат object

LoadIncludeText() публичный Метод

The included text is returned in the content parameter. If the host searches the registry for the location of include files, or if the host searches multiple locations by default, the host can return the final path of the include file in the location parameter.
public LoadIncludeText ( string requestFileName, string &content, string &location ) : bool
requestFileName string
content string
location string
Результат bool

LogErrors() публичный Метод

public LogErrors ( CompilerErrorCollection errors ) : void
errors System.CodeDom.Compiler.CompilerErrorCollection
Результат void

ProvideTemplatingAppDomain() публичный Метод

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 assembly directive if the user has specified it in the text template. This method can be called 0, 1, or more times.
public ResolveAssemblyReference ( string assemblyReference ) : string
assemblyReference string
Результат string

ResolveDirectiveProcessor() публичный Метод

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. The host can attempt to provide path information by searching specific paths for the file and returning the file and path if found. This method can be called 0, 1, or more times.
public ResolvePath ( string fileName ) : string
fileName string
Результат string

SetFileExtension() публичный Метод

public SetFileExtension ( string extension ) : void
extension string
Результат void

SetOutputEncoding() публичный Метод

public SetOutputEncoding ( Encoding encoding, bool fromOutputDirective ) : void
encoding System.Text.Encoding
fromOutputDirective bool
Результат void