//the underlying CardRenderService | |
public class CardRenderService | |
{ | |
private RazorLightEngine Engine; | |
public CardRenderService() | |
{ | |
Engine = new RazorLightEngineBuilder().UseMemoryCachingProvider().Build(); | |
} | |
public async Task<string> RenderCard(string key, string input, object data) | |
{ | |
return await Engine.CompileRenderAsync(key, input, data); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment