private async Task <RazorSourceDocument> GetRazorSourceDocumentAsync(DocumentSnapshot document)
        {
            var sourceText = await document.GetTextAsync();

            return(sourceText.GetRazorSourceDocument(document.FilePath));
        }
Пример #2
0
            private async Task <RazorSourceDocument> GetRazorSourceDocumentAsync(DocumentSnapshot document, RazorProjectItem projectItem)
            {
                var sourceText = await document.GetTextAsync();

                return(sourceText.GetRazorSourceDocument(document.FilePath, projectItem?.RelativePhysicalPath));
            }