C# 클래스 TcmDebugger.Mediators.WrappedCSharpMediator

WrappedCSharpMediator wraps around T:Tridion.ContentManager.Templating.Assembly.CSharpSourceCodeMediator in order to load template classes from local debug assemblies
상속: IMediator
파일 보기 프로젝트 열기: mvlasenko/TridionVSRazorExtension

공개 메소드들

메소드 설명
Configure ( MediatorElement configuration ) : void

Configures the specified configuration.

Initialize ( ) : void

Initializes the WrappedCSharpMediator by executing the static constructor

RunTemplateWrapper ( Engine engine, Package package, String templateUri, String className ) : void

Wraps around the original RunTemplate in order to load debug classes when required

The wrapper tries to load the specified class from available assemblies in the following order: 1) Assemblies configured as debug assemblies in the application configuration 2) Assemblies loaded in the application domain 3) Assembly with the same name as the template present in the application directory 4) Assembly stored in the Tridion database (default behavior of Tridion)

Transform ( Engine engine, Template template, Package package ) : void

Executes a Tridion template transformation

비공개 메소드들

메소드 설명
AssemblyResolve ( Object sender, ResolveEventArgs args ) : Assembly

Allow for resolving of dependent assemblies in the path of configured debug assembly libraries

GetTemplate ( IEnumerable assemblies, String className ) : ITemplate

Obtain the I:Tridion.ContentManager.Templating.Assembly.ITemplate for the requested className from the specified assemblies

LoadAssembly ( String fileName ) : Assembly

Load the T:System.Reflection.Assembly specified by the filename

Additionally loads the assembly symbols (.pdb) if available

WrappedCSharpMediator ( ) : System

Initializes the WrappedCSharpMediator class.

메소드 상세

Configure() 공개 메소드

Configures the specified configuration.
public Configure ( MediatorElement configuration ) : void
configuration MediatorElement The configuration.
리턴 void

Initialize() 공개 정적인 메소드

Initializes the WrappedCSharpMediator by executing the static constructor
public static Initialize ( ) : void
리턴 void

RunTemplateWrapper() 공개 정적인 메소드

Wraps around the original RunTemplate in order to load debug classes when required
The wrapper tries to load the specified class from available assemblies in the following order: 1) Assemblies configured as debug assemblies in the application configuration 2) Assemblies loaded in the application domain 3) Assembly with the same name as the template present in the application directory 4) Assembly stored in the Tridion database (default behavior of Tridion)
public static RunTemplateWrapper ( Engine engine, Package package, String templateUri, String className ) : void
engine Engine
package Package
templateUri String
className String Class to execute
리턴 void

Transform() 공개 메소드

Executes a Tridion template transformation
public Transform ( Engine engine, Template template, Package package ) : void
engine Engine
template Template
package Package
리턴 void