From ceee0b6e84f1951c48e302de1f951eb362eb8691 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Sun, 24 Jan 2021 19:36:18 +1100 Subject: [PATCH] Update RazorTemplateCompiler.cs --- src/RazorLight/Compilation/RazorTemplateCompiler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RazorLight/Compilation/RazorTemplateCompiler.cs b/src/RazorLight/Compilation/RazorTemplateCompiler.cs index e4523dc..11462eb 100644 --- a/src/RazorLight/Compilation/RazorTemplateCompiler.cs +++ b/src/RazorLight/Compilation/RazorTemplateCompiler.cs @@ -175,7 +175,7 @@ private async Task OnCacheMissAsync(string templateK try { - CompiledTemplateDescriptor descriptor = CompileAndEmit(item.ProjectItem); + CompiledTemplateDescriptor descriptor = await CompileAndEmitAsync(item.ProjectItem); descriptor.ExpirationToken = cacheEntryOptions.ExpirationTokens.FirstOrDefault(); taskSource.SetResult(descriptor); }