Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//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
You can’t perform that action at this time.