Skip to content

Commit 5d49e58

Browse files
committed
Comment
1 parent 244d7e5 commit 5d49e58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/RazorCodeDocument.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ internal RazorHtmlDocument GetHtmlDocument()
183183
return result;
184184
}
185185

186+
// Perf: Avoid concurrent requests generating the same html document
186187
lock (_htmlDocumentLock)
187188
{
188189
if (!_properties.HtmlDocument.TryGetValue(out result))

0 commit comments

Comments
 (0)