21 writes to RelativePath
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\PageActionDescriptorProvider.cs (1)
106RelativePath = model.RelativePath,
PageActionDescriptor.cs (1)
30RelativePath = other.RelativePath;
Microsoft.AspNetCore.Mvc.RazorPages.Test (19)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (5)
26RelativePath = "/Foo", 54RelativePath = "/Foo", 105RelativePath = "/Foo", 147RelativePath = "/Foo", 409RelativePath = "/Foo",
DependencyInjection\PageConventionCollectionExtensionsTest.cs (1)
1023RelativePath = relativePath,
Infrastructure\DefaultPageFactoryProviderTest.cs (1)
113descriptor.RelativePath = "/this/is/a/path.cshtml";
Infrastructure\PageActionInvokerProviderTest.cs (10)
32RelativePath = "/Path1", 82RelativePath = "/Path1", 155RelativePath = "/Home/Path1/File.cshtml", 204RelativePath = "/Path1", 250RelativePath = "/Path1", 281RelativePath = "/Path1", 315RelativePath = "/Path1", 321RelativePath = "/Path1", 370RelativePath = "/Pages/Level1/Level2/Index.cshtml", 424RelativePath = "/Views/Deeper/Index.cshtml",
Infrastructure\PageActionInvokerTest.cs (2)
331descriptor.RelativePath = relativePath; 1446RelativePath = "/Index.cshtml",
23 references to RelativePath
Microsoft.AspNetCore.Mvc.RazorPages (11)
ApplicationModels\PageApplicationModel.cs (1)
81public string RelativePath => ActionDescriptor.RelativePath;
Infrastructure\CompiledPageActionDescriptorProvider.cs (2)
69if (!lookup.TryGetValue(pageActionDescriptor.RelativePath, out var compiledViewDescriptor)) 71throw new InvalidOperationException($"A descriptor for '{pageActionDescriptor.RelativePath}' was not found.");
Infrastructure\DefaultPageFactoryProvider.cs (1)
63page.Path = pageContext.ActionDescriptor.RelativePath;
Infrastructure\DefaultPageLoader.cs (1)
62var viewDescriptor = await Compiler.CompileAsync(actionDescriptor.RelativePath);
Infrastructure\PageActionInvoker.cs (2)
117_viewContext.ExecutingFilePath = _pageContext.ActionDescriptor.RelativePath; 156_viewContext.ExecutingFilePath = _pageContext.ActionDescriptor.RelativePath;
Infrastructure\PageActionInvokerCache.cs (1)
117foreach (var filePath in RazorFileHierarchy.GetViewStartPaths(descriptor.RelativePath))
PageActionDescriptor.cs (3)
30RelativePath = other.RelativePath; 85private string DebuggerDisplayString => $"{nameof(ViewEnginePath)} = {ViewEnginePath}, {nameof(RelativePath)} = {RelativePath}";
Microsoft.AspNetCore.Mvc.RazorPages.Test (12)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (2)
40Assert.Same(actionDescriptor.RelativePath, actual.RelativePath);
Infrastructure\PageActionDescriptorProviderTest.cs (7)
62Assert.Equal("/Test.cshtml", descriptor.RelativePath); 101Assert.Equal(model.RelativePath, descriptor.RelativePath); 151Assert.Equal(model.RelativePath, descriptor.RelativePath); 197Assert.Equal(model.RelativePath, descriptor.RelativePath); 231Assert.Equal(model.RelativePath, descriptor.RelativePath); 331Assert.Equal("/Catalog/Details/Index.cshtml", descriptor.RelativePath); 338Assert.Equal("/Catalog/Details/Index.cshtml", descriptor.RelativePath);
Infrastructure\PageActionInvokerProviderTest.cs (3)
67Assert.Equal(descriptor.RelativePath, entry.ActionDescriptor.RelativePath); 132Assert.Equal(descriptor.RelativePath, compiledPageActionDescriptor.RelativePath);