Esempio n. 1
0
 /// <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();
 }
Esempio n. 2
0
 /// <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)
 {
 }
Esempio n. 4
0
 /// <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;
 }
Esempio n. 5
0
 public void Initialize()
 {
     _transformer         = new Mock <ITextTransformer>();
     _textTransformerHost = ServiceLocator.Resolve <ITextTransformerHost, ITextTransformer>(_transformer.Object);
     _host = _textTransformerHost as Host;
 }
Esempio n. 6
0
 /// <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>
 internal TextTransformerBase(ITextTransformerHost host, ITextTemplatingEngine engine)
 {
     _host = host;
     _host.ClassDefinitionGenerated += HostClassDefinitionGeneratedHandler;
     _engine = engine;
 }
 /// <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();
 }