/// <summary> /// Initializes a new instance of the <see cref="DomainTextTransformer"/> class. /// </summary> /// <param name="appDomainManager">The app domain manager.</param> /// <param name="host">The host.</param> /// <param name="engine">The engine.</param> internal DomainTextTransformer(IAppDomainManager appDomainManager, ITextTransformerHost host, ITextTemplatingEngine engine) : base(host, engine) { _appDomainManager = appDomainManager; Initialize(); }
/// <summary> /// Initializes a new instance of the <see cref="TextTransformerBase"/> class. /// </summary> protected internal TextTransformerBase() { _host = ServiceLocator.Resolve<ITextTransformerHost, ITextTransformer>(this); _host.ClassDefinitionGenerated += HostClassDefinitionGeneratedHandler; _engine = new Engine(); }
public TextTransformerImplementation(ITextTransformerHost host, ITextTemplatingEngine engine) : base(host, engine) { }
/// <summary> /// Initializes a new instance of the <see cref="TextTransformerBase"/> class. /// </summary> internal TextTransformerBase(ITextTransformerHost host, ITextTemplatingEngine engine) { _host = host; _host.ClassDefinitionGenerated += HostClassDefinitionGeneratedHandler; _engine = engine; }
public void Initialize() { _transformer = new Mock <ITextTransformer>(); _textTransformerHost = ServiceLocator.Resolve <ITextTransformerHost, ITextTransformer>(_transformer.Object); _host = _textTransformerHost as Host; }
/// <summary> /// Initializes a new instance of the <see cref="TextTransformerBase"/> class. /// </summary> protected internal TextTransformerBase() { _host = ServiceLocator.Resolve <ITextTransformerHost, ITextTransformer>(this); _host.ClassDefinitionGenerated += HostClassDefinitionGeneratedHandler; _engine = new Engine(); }