public ScribanTemplateRenderingEngine( ITemplateDefinitionManager templateDefinitionManager, ITemplateContentProvider templateContentProvider, IStringLocalizerFactory stringLocalizerFactory) : base(templateDefinitionManager, templateContentProvider, stringLocalizerFactory) { }
/// <summary> /// 初始化一个<see cref="TemplateRenderingEngineBase"/>类型的实例 /// </summary> /// <param name="templateDefinitionManager">模板定义管理器</param> /// <param name="templateContentProvider">模板内容提供程序</param> protected TemplateRenderingEngineBase( ITemplateDefinitionManager templateDefinitionManager, ITemplateContentProvider templateContentProvider) { TemplateDefinitionManager = templateDefinitionManager; TemplateContentProvider = templateContentProvider; }
/// <summary> /// 初始化一个<see cref="BingTemplateRenderer"/>类型的实例 /// </summary> /// <param name="serviceScopeFactory">服务作用域工厂</param> /// <param name="templateDefinitionManager">模板定义管理器</param> /// <param name="options">文本模板选项配置</param> public BingTemplateRenderer( IServiceScopeFactory serviceScopeFactory, ITemplateDefinitionManager templateDefinitionManager, IOptions <BingTextTemplatingOptions> options) { ServiceScopeFactory = serviceScopeFactory; TemplateDefinitionManager = templateDefinitionManager; Options = options.Value; }
public ScribanTemplateRenderer( ITemplateContentProvider templateContentProvider, ITemplateDefinitionManager templateDefinitionManager, IStringLocalizerFactory stringLocalizerFactory) { _templateContentProvider = templateContentProvider; _templateDefinitionManager = templateDefinitionManager; _stringLocalizerFactory = stringLocalizerFactory; }
/// <summary> /// 初始化一个<see cref="TemplateContentProvider"/>类型的实例 /// </summary> /// <param name="templateDefinitionManager">模板定义管理器</param> /// <param name="serviceScopeFactory">服务作用域工厂</param> /// <param name="options">文本模板选项配置</param> public TemplateContentProvider( ITemplateDefinitionManager templateDefinitionManager, IServiceScopeFactory serviceScopeFactory, IOptions <BingTextTemplatingOptions> options) { _templateDefinitionManager = templateDefinitionManager; ServiceScopeFactory = serviceScopeFactory; Options = options.Value; }
public TemplateRenderingEngineBase( ITemplateDefinitionManager templateDefinitionManager, ITemplateContentProvider templateContentProvider, IStringLocalizerFactory stringLocalizerFactory) { TemplateDefinitionManager = templateDefinitionManager; TemplateContentProvider = templateContentProvider; StringLocalizerFactory = stringLocalizerFactory; }
public TemplateContentProvider( ITemplateDefinitionManager templateDefinitionManager, IHybridServiceScopeFactory serviceScopeFactory, IOptions <PlusTextTemplatingOptions> options) { ServiceScopeFactory = serviceScopeFactory; Options = options.Value; _templateDefinitionManager = templateDefinitionManager; }
public RazorTemplateRenderingEngine( IServiceScopeFactory serviceScopeFactory, IAbpCompiledViewProvider abpCompiledViewProvider, ITemplateDefinitionManager templateDefinitionManager, ITemplateContentProvider templateContentProvider, IStringLocalizerFactory stringLocalizerFactory) : base(templateDefinitionManager, templateContentProvider, stringLocalizerFactory) { ServiceScopeFactory = serviceScopeFactory; AbpCompiledViewProvider = abpCompiledViewProvider; }
public RazorTemplateRenderer( IServiceScopeFactory serviceScopeFactory, IAbpCompiledViewProvider abpCompiledViewProvider, ITemplateDefinitionManager templateDefinitionManager, IStringLocalizerFactory stringLocalizerFactory) { _serviceScopeFactory = serviceScopeFactory; _templateDefinitionManager = templateDefinitionManager; _stringLocalizerFactory = stringLocalizerFactory; _abpCompiledViewProvider = abpCompiledViewProvider; }
public LeagueTemplateRenderer( ITemplateContentProvider templateContentProvider, ITemplateDefinitionManager templateDefinitionManager, IStringLocalizerFactory stringLocalizerFactory, Axuno.Tools.DateAndTime.TimeZoneConverter timeZoneConverter, TournamentManager.MultiTenancy.ITenantContext tenantContext, IOptions <LeagueTemplateRendererOptions> options) : base(templateContentProvider, templateDefinitionManager, stringLocalizerFactory) { _timeZoneConverter = timeZoneConverter; _tenantContext = tenantContext; VariableNotFoundAction = options.Value.VariableNotFoundAction; MemberNotFoundAction = options.Value.MemberNotFoundAction; }
protected LocalizedTemplateContentReaderFactory_Tests() { TemplateDefinitionManager = GetRequiredService <ITemplateDefinitionManager>(); }
public VirtualFileTemplateContributor_Tests() { _templateDefinitionManager = GetRequiredService <ITemplateDefinitionManager>(); _virtualFileTemplateContentContributor = GetRequiredService <VirtualFileTemplateContentContributor>(); }
public VirtualFileTemplateContributorTests() { _services = ServiceSetup.GetTextTemplatingServiceProvider(); _templateDefinitionManager = _services.GetRequiredService <ITemplateDefinitionManager>(); _virtualFileTemplateContentContributor = _services.GetRequiredService <VirtualFileTemplateContentContributor>(); }
public TemplateDefinitionTests() { IServiceProvider services = ServiceSetup.GetTextTemplatingServiceProvider(); _templateDefinitionManager = services.GetRequiredService <ITemplateDefinitionManager>(); }
public AbpCompiledViewProviderOptions_Tests() { _templateDefinitionManager = GetRequiredService <ITemplateDefinitionManager>(); _compiledViewProvider = GetRequiredService <IAbpCompiledViewProvider>(); }
public TemplateDefinitionTests() { _templateDefinitionManager = GetRequiredService <ITemplateDefinitionManager>(); }
/// <summary> /// 初始化一个<see cref="ScribanTemplateRenderingEngine"/>类型的实例 /// </summary> /// <param name="templateDefinitionManager">模板定义管理器</param> /// <param name="templateContentProvider">模板内容提供程序</param> public ScribanTemplateRenderingEngine( ITemplateDefinitionManager templateDefinitionManager, ITemplateContentProvider templateContentProvider) : base(templateDefinitionManager, templateContentProvider) { }
protected TemplateDefinitionTests() { TemplateDefinitionManager = GetRequiredService <ITemplateDefinitionManager>(); }
protected VirtualFileTemplateContributor_Tests() { TemplateDefinitionManager = GetRequiredService <ITemplateDefinitionManager>(); VirtualFileTemplateContentContributor = GetRequiredService <VirtualFileTemplateContentContributor>(); }
public CustomTemplateRenderer( ITemplateContentProvider templateContentProvider, ITemplateDefinitionManager templateDefinitionManager, IStringLocalizerFactory stringLocalizerFactory) : base(templateContentProvider, templateDefinitionManager, stringLocalizerFactory) { }
public LocalizedTemplateContentReaderFactoryTests() { IServiceProvider services = ServiceSetup.GetTextTemplatingServiceProvider(); _templateDefinitionManager = services.GetRequiredService <ITemplateDefinitionManager>(); }