9 instantiations of ViewLocationExpanderContext
Microsoft.AspNetCore.Mvc.Razor (1)
RazorViewEngine.cs (1)
230var expanderContext = new ViewLocationExpanderContext(
Microsoft.AspNetCore.Mvc.Razor.Test (7)
LanguageViewLocationExpanderTest.cs (3)
133var viewLocationExpanderContext = new ViewLocationExpanderContext( 158var viewLocationExpanderContext = new ViewLocationExpanderContext( 186var viewLocationExpanderContext = new ViewLocationExpanderContext(
RazorViewEngineTest.cs (4)
1737var context = new ViewLocationExpanderContext( 1762var context = new ViewLocationExpanderContext( 1787var context = new ViewLocationExpanderContext( 1814var context = new ViewLocationExpanderContext(
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageViewLocationExpanderTest.cs (1)
208return new ViewLocationExpanderContext(
74 references to ViewLocationExpanderContext
Microsoft.AspNetCore.Mvc.Razor (15)
IViewLocationExpander.cs (8)
12/// (1) <see cref="PopulateValues(ViewLocationExpanderContext)"/> is invoked and each expander 14/// <see cref="ExpandViewLocations(ViewLocationExpanderContext, IEnumerable{string})"/>. 16/// <see cref="PopulateValues(ViewLocationExpanderContext)"/> was invoked, the cached result 19/// <see cref="ExpandViewLocations(ViewLocationExpanderContext, IEnumerable{string})"/> is invoked to determine 29/// <param name="context">The <see cref="ViewLocationExpanderContext"/> for the current view location 31void PopulateValues(ViewLocationExpanderContext context); 36/// <param name="context">The <see cref="ViewLocationExpanderContext"/> for the current view location 40IEnumerable<string> ExpandViewLocations(ViewLocationExpanderContext context,
LanguageViewLocationExpander.cs (2)
43public void PopulateValues(ViewLocationExpanderContext context) 53ViewLocationExpanderContext context,
RazorViewEngine.cs (3)
230var expanderContext = new ViewLocationExpanderContext( 309internal IEnumerable<string> GetViewLocationFormats(ViewLocationExpanderContext context) 338ViewLocationExpanderContext expanderContext,
ViewLocationExpanderContext.cs (2)
12/// Initializes a new instance of <see cref="ViewLocationExpanderContext"/>. 72/// <see cref="IViewLocationExpander.PopulateValues(ViewLocationExpanderContext)"/>.
Microsoft.AspNetCore.Mvc.Razor.Test (44)
LanguageViewLocationExpanderTest.cs (3)
133var viewLocationExpanderContext = new ViewLocationExpanderContext( 158var viewLocationExpanderContext = new ViewLocationExpanderContext( 186var viewLocationExpanderContext = new ViewLocationExpanderContext(
RazorViewEngineTest.cs (41)
674.Setup(e => e.PopulateValues(It.IsAny<ViewLocationExpanderContext>())) 675.Callback((ViewLocationExpanderContext c) => 683It.IsAny<ViewLocationExpanderContext>(), 685.Callback((ViewLocationExpanderContext c, IEnumerable<string> seeds) => 696It.IsAny<ViewLocationExpanderContext>(), 698.Callback((ViewLocationExpanderContext c, IEnumerable<string> seeds) => 742.Setup(e => e.PopulateValues(It.IsAny<ViewLocationExpanderContext>())) 743.Callback((ViewLocationExpanderContext c) => 751It.IsAny<ViewLocationExpanderContext>(), 753.Callback((ViewLocationExpanderContext c, IEnumerable<string> seeds) => 764It.IsAny<ViewLocationExpanderContext>(), 766.Callback((ViewLocationExpanderContext c, IEnumerable<string> seeds) => 802It.IsAny<ViewLocationExpanderContext>(), 960.Setup(v => v.PopulateValues(It.IsAny<ViewLocationExpanderContext>())) 961.Callback((ViewLocationExpanderContext expanderContext) => 968It.IsAny<ViewLocationExpanderContext>(), 993v => v.PopulateValues(It.IsAny<ViewLocationExpanderContext>()), 996v => v.ExpandViewLocations(It.IsAny<ViewLocationExpanderContext>(), It.IsAny<IEnumerable<string>>()), 1019.Setup(v => v.PopulateValues(It.IsAny<ViewLocationExpanderContext>())) 1020.Callback((ViewLocationExpanderContext expanderContext) => 1027It.IsAny<ViewLocationExpanderContext>(), 1057v => v.PopulateValues(It.IsAny<ViewLocationExpanderContext>()), 1060v => v.ExpandViewLocations(It.IsAny<ViewLocationExpanderContext>(), It.IsAny<IEnumerable<string>>()), 1158.Setup(e => e.PopulateValues(It.IsAny<ViewLocationExpanderContext>())) 1159.Callback((ViewLocationExpanderContext c) => 1167It.IsAny<ViewLocationExpanderContext>(), 1169.Returns((ViewLocationExpanderContext c, IEnumerable<string> seeds) => 1217.Setup(e => e.PopulateValues(It.IsAny<ViewLocationExpanderContext>())) 1218.Callback((ViewLocationExpanderContext c) => 1226It.IsAny<ViewLocationExpanderContext>(), 1228.Returns((ViewLocationExpanderContext c, IEnumerable<string> seeds) => 1737var context = new ViewLocationExpanderContext( 1762var context = new ViewLocationExpanderContext( 1787var context = new ViewLocationExpanderContext( 1814var context = new ViewLocationExpanderContext( 1842.Setup(e => e.PopulateValues(It.IsAny<ViewLocationExpanderContext>())) 1843.Callback((ViewLocationExpanderContext c) => 1852It.IsAny<ViewLocationExpanderContext>(), 1878.Setup(e => e.PopulateValues(It.IsAny<ViewLocationExpanderContext>())) 1879.Callback((ViewLocationExpanderContext c) => 1887It.IsAny<ViewLocationExpanderContext>(),
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\PageViewLocationExpander.cs (2)
14public IEnumerable<string> ExpandViewLocations(ViewLocationExpanderContext context, IEnumerable<string> viewLocations) 68public void PopulateValues(ViewLocationExpanderContext context)
Microsoft.AspNetCore.Mvc.RazorPages.Test (9)
Infrastructure\PageViewLocationExpanderTest.cs (9)
15var context = CreateContext(); 30var context = CreateContext(pageName: null); 51var context = CreateContext(pageName: "test"); 71var context = CreateContext(pageName: null); 95var context = CreateContext(pageName: pageName); 115var context = CreateContext(pageName: "/Customers/Edit"); 148var context = CreateContext(pageName: pageName); 167var context = CreateContext(pageName: "/Customers/Edit"); 201private ViewLocationExpanderContext CreateContext(string viewName = "_LoginPartial.cshtml", string pageName = null)
RazorWebSite (4)
Services\BackSlashExpander.cs (2)
11public void PopulateValues(ViewLocationExpanderContext context) 15public virtual IEnumerable<string> ExpandViewLocations(ViewLocationExpanderContext context, IEnumerable<string> viewLocations)
Services\NonMainPageViewLocationExpander.cs (2)
10public void PopulateValues(ViewLocationExpanderContext context) 15ViewLocationExpanderContext context,