Table of Contents

Class HtmlTemplateService

Namespace
JJMasterData.Core.DataManager.Services
Assembly
JJMasterData.Core.dll
public class HtmlTemplateService
Inheritance
HtmlTemplateService
Inherited Members

Constructors

HtmlTemplateService(IEntityRepository, IStringLocalizer<MasterDataResources>, ILogger<HtmlTemplateService>, FluidParser)

public HtmlTemplateService(IEntityRepository entityRepository, IStringLocalizer<MasterDataResources> stringLocalizer, ILogger<HtmlTemplateService> logger, FluidParser fluidParser)

Parameters

entityRepository IEntityRepository
stringLocalizer IStringLocalizer<MasterDataResources>
logger ILogger<HtmlTemplateService>
fluidParser FluidParser

Methods

RenderTemplate(HtmlTemplateAction, Guid?, Dictionary<string, object>)

public Task<HtmlBuilder> RenderTemplate(HtmlTemplateAction action, Guid? connectionId, Dictionary<string, object> pkValues)

Parameters

action HtmlTemplateAction
connectionId Guid?
pkValues Dictionary<string, object>

Returns

Task<HtmlBuilder>

RenderTemplate(string, Dictionary<string, object>)

public ValueTask<string> RenderTemplate(string templateString, Dictionary<string, object> values)

Parameters

templateString string
values Dictionary<string, object>

Returns

ValueTask<string>