1 write to SearchedLocations
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewEngines\ViewEngineResult.cs (1)
58SearchedLocations = searchedLocations,
45 references to SearchedLocations
Microsoft.AspNetCore.Mvc.Razor.Test (5)
RazorViewEngineTest.cs (5)
271}, result.SearchedLocations); 291}, result.SearchedLocations); 983Assert.Equal(expandedLocations, result.SearchedLocations); 991Assert.Equal(expandedLocations, result.SearchedLocations); 1042Assert.Equal(expandedLocations, result.SearchedLocations);
Microsoft.AspNetCore.Mvc.TagHelpers (4)
PartialTagHelper.cs (4)
113var viewSearchedLocations = result.SearchedLocations; 133locations = Environment.NewLine + string.Join(Environment.NewLine, result.SearchedLocations); 183var getViewLocations = viewEngineResult.SearchedLocations; 191var searchedLocations = Enumerable.Concat(getViewLocations, viewEngineResult.SearchedLocations);
Microsoft.AspNetCore.Mvc.ViewFeatures (24)
HtmlHelper.cs (3)
516var originalLocations = viewEngineResult.SearchedLocations; 530if (viewEngineResult.SearchedLocations.Any()) 533Environment.NewLine + string.Join(Environment.NewLine, viewEngineResult.SearchedLocations);
PartialViewResultExecutor.cs (6)
81if (originalResult.SearchedLocations.Any()) 83if (result.SearchedLocations.Any()) 86var locations = new List<string>(originalResult.SearchedLocations); 87locations.AddRange(result.SearchedLocations); 115searchedLocations: result.SearchedLocations); 116Log.PartialViewNotFound(Logger, viewName, result.SearchedLocations);
ViewComponents\ViewViewComponentResult.cs (1)
82originalLocations = result.SearchedLocations;
ViewEngines\CompositeViewEngine.cs (5)
59searchedLocations = result.SearchedLocations; 70searchedList.AddRange(result.SearchedLocations); 104searchedLocations = result.SearchedLocations; 115if (result.SearchedLocations is not null) 117searchedList.AddRange(result.SearchedLocations);
ViewEngines\ViewEngineResult.cs (3)
83/// Additional <see cref="SearchedLocations"/> to include in the thrown <see cref="InvalidOperationException"/> 101if (SearchedLocations.Any()) 103locations += Environment.NewLine + string.Join(Environment.NewLine, SearchedLocations);
ViewResultExecutor.cs (6)
82if (originalResult.SearchedLocations.Any()) 84if (result.SearchedLocations.Any()) 87var locations = new List<string>(originalResult.SearchedLocations); 88locations.AddRange(result.SearchedLocations); 110Log.ViewNotFound(Logger, viewName, result.SearchedLocations); 134searchedLocations: result.SearchedLocations);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
PartialViewResultExecutorTest.cs (3)
132Assert.Equal(expectedLocations, result.SearchedLocations); 167Assert.Equal(expectedLocations, result.SearchedLocations); 202Assert.Equal(expectedLocations, result.SearchedLocations);
ViewEngines\CompositeViewEngineTest.cs (6)
67Assert.Equal(new[] { "controller/test-view" }, result.SearchedLocations); 156Assert.Equal(new[] { "1", "2", "3", "4", "5" }, result.SearchedLocations); 199Assert.Equal(new[] { expectedViewName }, result.SearchedLocations); 297Assert.Equal(new[] { "1", "2", "3", "4", "5" }, result.SearchedLocations); 334Assert.Equal(new[] { "Shared/partial-view" }, result.SearchedLocations); 423Assert.Equal(new[] { "1", "2", "3", "4", "5" }, result.SearchedLocations);
ViewResultExecutorTest.cs (3)
130Assert.Equal(expectedLocations, result.SearchedLocations); 164Assert.Equal(expectedLocations, result.SearchedLocations); 198Assert.Equal(expectedLocations, result.SearchedLocations);