예제 #1
0
 public ScribanTemplateRenderingEngine(
     ITemplateDefinitionManager templateDefinitionManager,
     ITemplateContentProvider templateContentProvider,
     IStringLocalizerFactory stringLocalizerFactory)
     : base(templateDefinitionManager, templateContentProvider, stringLocalizerFactory)
 {
 }
예제 #2
0
 /// <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;
 }
예제 #4
0
 public ScribanTemplateRenderer(
     ITemplateContentProvider templateContentProvider,
     ITemplateDefinitionManager templateDefinitionManager,
     IStringLocalizerFactory stringLocalizerFactory)
 {
     _templateContentProvider   = templateContentProvider;
     _templateDefinitionManager = templateDefinitionManager;
     _stringLocalizerFactory    = stringLocalizerFactory;
 }
예제 #5
0
 /// <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;
 }
예제 #6
0
 public TemplateRenderingEngineBase(
     ITemplateDefinitionManager templateDefinitionManager,
     ITemplateContentProvider templateContentProvider,
     IStringLocalizerFactory stringLocalizerFactory)
 {
     TemplateDefinitionManager = templateDefinitionManager;
     TemplateContentProvider   = templateContentProvider;
     StringLocalizerFactory    = stringLocalizerFactory;
 }
예제 #7
0
 public TemplateContentProvider(
     ITemplateDefinitionManager templateDefinitionManager,
     IHybridServiceScopeFactory serviceScopeFactory,
     IOptions <PlusTextTemplatingOptions> options)
 {
     ServiceScopeFactory        = serviceScopeFactory;
     Options                    = options.Value;
     _templateDefinitionManager = templateDefinitionManager;
 }
예제 #8
0
 public RazorTemplateRenderingEngine(
     IServiceScopeFactory serviceScopeFactory,
     IAbpCompiledViewProvider abpCompiledViewProvider,
     ITemplateDefinitionManager templateDefinitionManager,
     ITemplateContentProvider templateContentProvider,
     IStringLocalizerFactory stringLocalizerFactory)
     : base(templateDefinitionManager, templateContentProvider, stringLocalizerFactory)
 {
     ServiceScopeFactory     = serviceScopeFactory;
     AbpCompiledViewProvider = abpCompiledViewProvider;
 }
예제 #9
0
 public RazorTemplateRenderer(
     IServiceScopeFactory serviceScopeFactory,
     IAbpCompiledViewProvider abpCompiledViewProvider,
     ITemplateDefinitionManager templateDefinitionManager,
     IStringLocalizerFactory stringLocalizerFactory)
 {
     _serviceScopeFactory       = serviceScopeFactory;
     _templateDefinitionManager = templateDefinitionManager;
     _stringLocalizerFactory    = stringLocalizerFactory;
     _abpCompiledViewProvider   = abpCompiledViewProvider;
 }
예제 #10
0
 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>();
 }
예제 #13
0
 public VirtualFileTemplateContributorTests()
 {
     _services = ServiceSetup.GetTextTemplatingServiceProvider();
     _templateDefinitionManager             = _services.GetRequiredService <ITemplateDefinitionManager>();
     _virtualFileTemplateContentContributor = _services.GetRequiredService <VirtualFileTemplateContentContributor>();
 }
예제 #14
0
        public TemplateDefinitionTests()
        {
            IServiceProvider services = ServiceSetup.GetTextTemplatingServiceProvider();

            _templateDefinitionManager = services.GetRequiredService <ITemplateDefinitionManager>();
        }
 public AbpCompiledViewProviderOptions_Tests()
 {
     _templateDefinitionManager = GetRequiredService <ITemplateDefinitionManager>();
     _compiledViewProvider      = GetRequiredService <IAbpCompiledViewProvider>();
 }
예제 #16
0
 public TemplateDefinitionTests()
 {
     _templateDefinitionManager = GetRequiredService <ITemplateDefinitionManager>();
 }
예제 #17
0
 /// <summary>
 /// 初始化一个<see cref="ScribanTemplateRenderingEngine"/>类型的实例
 /// </summary>
 /// <param name="templateDefinitionManager">模板定义管理器</param>
 /// <param name="templateContentProvider">模板内容提供程序</param>
 public ScribanTemplateRenderingEngine(
     ITemplateDefinitionManager templateDefinitionManager,
     ITemplateContentProvider templateContentProvider)
     : base(templateDefinitionManager, templateContentProvider)
 {
 }
예제 #18
0
 protected TemplateDefinitionTests()
 {
     TemplateDefinitionManager = GetRequiredService <ITemplateDefinitionManager>();
 }
예제 #19
0
 protected VirtualFileTemplateContributor_Tests()
 {
     TemplateDefinitionManager             = GetRequiredService <ITemplateDefinitionManager>();
     VirtualFileTemplateContentContributor = GetRequiredService <VirtualFileTemplateContentContributor>();
 }
예제 #20
0
 public CustomTemplateRenderer(
     ITemplateContentProvider templateContentProvider,
     ITemplateDefinitionManager templateDefinitionManager,
     IStringLocalizerFactory stringLocalizerFactory) : base(templateContentProvider, templateDefinitionManager, stringLocalizerFactory)
 {
 }
예제 #21
0
        public LocalizedTemplateContentReaderFactoryTests()
        {
            IServiceProvider services = ServiceSetup.GetTextTemplatingServiceProvider();

            _templateDefinitionManager = services.GetRequiredService <ITemplateDefinitionManager>();
        }