1 type derived from PageActionDescriptor
Microsoft.AspNetCore.Mvc.RazorPages (1)
CompiledPageActionDescriptor.cs (1)
13
public class CompiledPageActionDescriptor :
PageActionDescriptor
104 instantiations of PageActionDescriptor
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
PageLoaderMatcherPolicyTest.cs (3)
20
compiled.Endpoint = CreateEndpoint(new
PageActionDescriptor
());
39
compiled.Endpoint = CreateEndpoint(new
PageActionDescriptor
());
65
compiled.Endpoint = CreateEndpoint(new
PageActionDescriptor
());
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\PageActionDescriptorProvider.cs (1)
90
var descriptor = new
PageActionDescriptor
Microsoft.AspNetCore.Mvc.RazorPages.Test (100)
ApplicationModels\AuthorizationPageApplicationModelProviderTest.cs (1)
195
var context = new PageApplicationModelProviderContext(new
PageActionDescriptor
(), typeInfo);
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (9)
20
var actionDescriptor = new
PageActionDescriptor
49
var actionDescriptor = new
PageActionDescriptor
100
var actionDescriptor = new
PageActionDescriptor
142
var actionDescriptor = new
PageActionDescriptor
212
var actionDescriptor = new
PageActionDescriptor
();
252
var actionDescriptor = new
PageActionDescriptor
();
311
var actionDescriptor = new
PageActionDescriptor
();
353
var actionDescriptor = new
PageActionDescriptor
();
403
var actionDescriptor = new
PageActionDescriptor
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (31)
23
var descriptor = new
PageActionDescriptor
();
64
var descriptor = new
PageActionDescriptor
();
87
var descriptor = new
PageActionDescriptor
();
112
var descriptor = new
PageActionDescriptor
();
137
var descriptor = new
PageActionDescriptor
();
192
var descriptor = new
PageActionDescriptor
();
235
var descriptor = new
PageActionDescriptor
();
289
var descriptor = new
PageActionDescriptor
();
332
var descriptor = new
PageActionDescriptor
();
374
var descriptor = new
PageActionDescriptor
();
421
var descriptor = new
PageActionDescriptor
();
448
var context = new PageApplicationModelProviderContext(new
PageActionDescriptor
(), typeInfo);
469
var context = new PageApplicationModelProviderContext(new
PageActionDescriptor
(), typeInfo);
538
var context = new PageApplicationModelProviderContext(new
PageActionDescriptor
(), typeInfo);
576
var context = new PageApplicationModelProviderContext(new
PageActionDescriptor
(), typeInfo);
622
var context = new PageApplicationModelProviderContext(new
PageActionDescriptor
(), typeInfo);
674
var pageModel = new PageApplicationModel(new
PageActionDescriptor
(), typeInfo, new object[0]);
725
var pageModel = new PageApplicationModel(new
PageActionDescriptor
(), typeInfo, new object[0]);
752
var pageModel = new PageApplicationModel(new
PageActionDescriptor
(), typeInfo, new object[0]);
776
var pageModel = new PageApplicationModel(new
PageActionDescriptor
(), typeInfo, new object[0]);
806
var pageModel = new PageApplicationModel(new
PageActionDescriptor
(), typeInfo, new object[0]);
834
var pageModel = new PageApplicationModel(new
PageActionDescriptor
(), typeInfo, new object[0]);
864
var pageModel = new PageApplicationModel(new
PageActionDescriptor
(), typeInfo, new object[0]);
899
var pageModel = new PageApplicationModel(new
PageActionDescriptor
(), typeInfo, new object[0]);
942
var pageModel = new PageApplicationModel(new
PageActionDescriptor
(), typeInfo, new object[0]);
975
var pageModel = new PageApplicationModel(new
PageActionDescriptor
(), typeInfo, new object[0]);
1092
var pageModel = new PageApplicationModel(new
PageActionDescriptor
(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
1109
var pageModel = new PageApplicationModel(new
PageActionDescriptor
(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
1134
var pageModel = new PageApplicationModel(new
PageActionDescriptor
(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
1165
var pageModel = new PageApplicationModel(new
PageActionDescriptor
(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
1201
var pageModel = new PageApplicationModel(new
PageActionDescriptor
(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
ApplicationModels\ResponseCacheFilterApplicationModelProviderTest.cs (1)
149
var context = new PageApplicationModelProviderContext(new
PageActionDescriptor
(), typeInfo);
DependencyInjection\PageConventionCollectionExtensionsTest.cs (1)
1020
var descriptor = new
PageActionDescriptor
Filters\AutoValidateAntiforgeryPageApplicationModelProviderTest.cs (4)
18
var actionDescriptor = new
PageActionDescriptor
();
24
var context = new PageApplicationModelProviderContext(new
PageActionDescriptor
(), typeof(object).GetTypeInfo())
44
var descriptor = new
PageActionDescriptor
();
69
var descriptor = new
PageActionDescriptor
();
Filters\PageHandlerResultFilterTest.cs (4)
21
new
PageActionDescriptor
(),
59
new
PageActionDescriptor
(),
100
new
PageActionDescriptor
(),
142
new
PageActionDescriptor
(),
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (11)
17
var descriptor = new
PageActionDescriptor
();
43
var descriptor = new
PageActionDescriptor
();
78
var descriptor = new
PageActionDescriptor
();
106
var descriptor = new
PageActionDescriptor
();
133
var descriptor = new
PageActionDescriptor
();
164
var descriptor = new
PageActionDescriptor
();
195
var descriptor = new
PageActionDescriptor
();
226
var descriptor = new
PageActionDescriptor
();
261
var descriptor = new
PageActionDescriptor
();
295
var descriptor = new
PageActionDescriptor
();
326
var descriptor = new
PageActionDescriptor
();
Infrastructure\DefaultPageLoaderTest.cs (8)
33
var descriptor = new
PageActionDescriptor
();
94
var result = await loader.LoadAsync(new
PageActionDescriptor
(), EndpointMetadataCollection.Empty);
105
var descriptor = new
PageActionDescriptor
()
158
var descriptor = new
PageActionDescriptor
();
211
var result = await loader.LoadAsync(new
PageActionDescriptor
(), EndpointMetadataCollection.Empty);
222
var descriptor = new
PageActionDescriptor
()
276
var descriptor = new
PageActionDescriptor
()
284
var descriptor2 = new
PageActionDescriptor
()
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (1)
127
var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new
PageActionDescriptor
());
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (3)
20
new
PageActionDescriptor
()
28
new
PageActionDescriptor
()
358
new Endpoint((ctx) => Task.CompletedTask, new EndpointMetadataCollection(new
PageActionDescriptor
()
Infrastructure\PageActionEndpointDataSourceTest.cs (6)
55
new
PageActionDescriptor
99
new
PageActionDescriptor
112
new
PageActionDescriptor
177
new
PageActionDescriptor
219
new
PageActionDescriptor
273
var action = new
PageActionDescriptor
();
Infrastructure\PageActionInvokerProviderTest.cs (10)
30
var descriptor = CreateCompiledPageActionDescriptor(new
PageActionDescriptor
80
new
PageActionDescriptor
153
var descriptor = CreateCompiledPageActionDescriptor(new
PageActionDescriptor
202
var descriptor = CreateCompiledPageActionDescriptor(new
PageActionDescriptor
248
var descriptor = CreateCompiledPageActionDescriptor(new
PageActionDescriptor
279
var descriptor = new
PageActionDescriptor
313
var descriptor = CreateCompiledPageActionDescriptor(new
PageActionDescriptor
319
var descriptor2 = CreateCompiledPageActionDescriptor(new
PageActionDescriptor
368
var descriptor = new
PageActionDescriptor
()
422
var descriptor = new
PageActionDescriptor
()
Infrastructure\PageHandlerPageFilterTest.cs (4)
21
new
PageActionDescriptor
(),
60
new
PageActionDescriptor
(),
102
new
PageActionDescriptor
(),
145
new
PageActionDescriptor
(),
Infrastructure\PageViewLocationExpanderTest.cs (1)
205
ActionDescriptor = new
PageActionDescriptor
(),
PageModelTest.cs (4)
1724
var actionContext = new ActionContext(httpContext, new RouteData(), new
PageActionDescriptor
(), modelState);
1849
new
PageActionDescriptor
(),
1883
new
PageActionDescriptor
(),
1918
new
PageActionDescriptor
(),
PageTest.cs (1)
24
var actionContext = new ActionContext(httpContext, new RouteData(), new
PageActionDescriptor
(), modelState);
121 references to PageActionDescriptor
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (6)
PageLoaderMatcherPolicy.cs (6)
44
var
page = endpoints[i].Metadata.GetMetadata<
PageActionDescriptor
>();
70
var
page = endpoint.Metadata.GetMetadata<
PageActionDescriptor
>();
111
var
page = endpoint.Metadata.GetMetadata<
PageActionDescriptor
>();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
PageLoaderMatcherPolicyTest.cs (3)
24
var loader = Mock.Of<PageLoader>(p => p.LoadAsync(It.IsAny<
PageActionDescriptor
>(), It.IsAny<EndpointMetadataCollection>()) == Task.FromResult(compiled));
43
loader.Setup(l => l.LoadAsync(It.IsAny<
PageActionDescriptor
>(), It.IsAny<EndpointMetadataCollection>()))
75
var loader = Mock.Of<PageLoader>(p => p.LoadAsync(It.IsAny<
PageActionDescriptor
>(), It.IsAny<EndpointMetadataCollection>()) == loadTask);
Microsoft.AspNetCore.Mvc.RazorPages (46)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
44
var
actionDescriptor = applicationModel.ActionDescriptor;
ApplicationModels\DefaultPageApplicationModelProvider.cs (2)
57
/// <param name="actionDescriptor">The <see cref="
PageActionDescriptor
"/>.</param>
61
PageActionDescriptor
actionDescriptor,
ApplicationModels\PageApplicationModel.cs (4)
21
PageActionDescriptor
actionDescriptor,
32
PageActionDescriptor
actionDescriptor,
74
/// Gets the <see cref="
PageActionDescriptor
"/>.
76
public
PageActionDescriptor
ActionDescriptor { get; }
ApplicationModels\PageApplicationModelProviderContext.cs (4)
17
/// <param name="descriptor">The <see cref="
PageActionDescriptor
"/>.</param>
19
public PageApplicationModelProviderContext(
PageActionDescriptor
descriptor, TypeInfo pageTypeInfo)
26
/// Gets the <see cref="
PageActionDescriptor
"/>.
28
public
PageActionDescriptor
ActionDescriptor { get; }
CompiledPageActionDescriptor.cs (3)
11
/// A <see cref="
PageActionDescriptor
"/> for a compiled Razor page.
26
/// <param name="actionDescriptor">The <see cref="
PageActionDescriptor
"/>.</param>
27
public CompiledPageActionDescriptor(
PageActionDescriptor
actionDescriptor)
Infrastructure\CompiledPageActionDescriptorFactory.cs (2)
15
/// A factory for producing <see cref="CompiledPageActionDescriptor"/> given a <see cref="
PageActionDescriptor
"/>.
34
PageActionDescriptor
actionDescriptor,
Infrastructure\CompiledPageActionDescriptorProvider.cs (2)
68
var
pageActionDescriptor = (
PageActionDescriptor
)item;
Infrastructure\DefaultPageLoader.cs (3)
35
public override Task<CompiledPageActionDescriptor> LoadAsync(
PageActionDescriptor
actionDescriptor)
38
public override Task<CompiledPageActionDescriptor> LoadAsync(
PageActionDescriptor
actionDescriptor, EndpointMetadataCollection endpointMetadata)
60
private async Task<CompiledPageActionDescriptor> LoadAsyncCore(
PageActionDescriptor
actionDescriptor, EndpointMetadataCollection endpointMetadata)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (2)
160
var
actionDescriptor = metadata.GetMetadata<
PageActionDescriptor
>();
Infrastructure\IPageLoader.cs (4)
7
/// Creates a <see cref="CompiledPageActionDescriptor"/> from a <see cref="
PageActionDescriptor
"/>.
13
/// Produces a <see cref="CompiledPageActionDescriptor"/> given a <see cref="
PageActionDescriptor
"/>.
15
/// <param name="actionDescriptor">The <see cref="
PageActionDescriptor
"/>.</param>
17
CompiledPageActionDescriptor Load(
PageActionDescriptor
actionDescriptor);
Infrastructure\PageActionDescriptorProvider.cs (1)
90
var
descriptor = new PageActionDescriptor
Infrastructure\PageActionEndpointDataSource.cs (1)
56
if (actions[i] is
PageActionDescriptor
action)
Infrastructure\PageActionInvokerCache.cs (2)
43
var
actionDescriptor = (
PageActionDescriptor
)actionContext.ActionDescriptor;
Infrastructure\PageActionInvokerProvider.cs (1)
67
if (actionContext.ActionDescriptor is not
PageActionDescriptor
page)
Infrastructure\PageLoader.cs (8)
9
/// Creates a <see cref="CompiledPageActionDescriptor"/> from a <see cref="
PageActionDescriptor
"/>.
16
/// Produces a <see cref="CompiledPageActionDescriptor"/> given a <see cref="
PageActionDescriptor
"/>.
18
/// <param name="actionDescriptor">The <see cref="
PageActionDescriptor
"/>.</param>
21
public abstract Task<CompiledPageActionDescriptor> LoadAsync(
PageActionDescriptor
actionDescriptor);
24
/// Produces a <see cref="CompiledPageActionDescriptor"/> given a <see cref="
PageActionDescriptor
"/>.
26
/// <param name="actionDescriptor">The <see cref="
PageActionDescriptor
"/>.</param>
29
public virtual Task<CompiledPageActionDescriptor> LoadAsync(
PageActionDescriptor
actionDescriptor, EndpointMetadataCollection endpointMetadata)
32
CompiledPageActionDescriptor IPageLoader.Load(
PageActionDescriptor
actionDescriptor)
Infrastructure\PageViewLocationExpander.cs (1)
16
if ((context.ActionContext.ActionDescriptor is
PageActionDescriptor
) && !string.IsNullOrEmpty(context.PageName))
PageActionDescriptor.cs (4)
16
/// Initializes a new instance of <see cref="
PageActionDescriptor
"/>.
23
/// A copy constructor for <see cref="
PageActionDescriptor
"/>.
25
/// <param name="other">The <see cref="
PageActionDescriptor
"/> to copy from.</param>
26
public PageActionDescriptor(
PageActionDescriptor
other)
PageContext.cs (1)
59
/// Gets or sets the <see cref="
PageActionDescriptor
"/>.
Microsoft.AspNetCore.Mvc.RazorPages.Test (66)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (9)
20
var
actionDescriptor = new PageActionDescriptor
49
var
actionDescriptor = new PageActionDescriptor
100
var
actionDescriptor = new PageActionDescriptor
142
var
actionDescriptor = new PageActionDescriptor
212
var
actionDescriptor = new PageActionDescriptor();
252
var
actionDescriptor = new PageActionDescriptor();
311
var
actionDescriptor = new PageActionDescriptor();
353
var
actionDescriptor = new PageActionDescriptor();
403
var
actionDescriptor = new PageActionDescriptor
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (11)
23
var
descriptor = new PageActionDescriptor();
64
var
descriptor = new PageActionDescriptor();
87
var
descriptor = new PageActionDescriptor();
112
var
descriptor = new PageActionDescriptor();
137
var
descriptor = new PageActionDescriptor();
192
var
descriptor = new PageActionDescriptor();
235
var
descriptor = new PageActionDescriptor();
289
var
descriptor = new PageActionDescriptor();
332
var
descriptor = new PageActionDescriptor();
374
var
descriptor = new PageActionDescriptor();
421
var
descriptor = new PageActionDescriptor();
DependencyInjection\PageConventionCollectionExtensionsTest.cs (1)
1020
var
descriptor = new PageActionDescriptor
Filters\AutoValidateAntiforgeryPageApplicationModelProviderTest.cs (3)
18
var
actionDescriptor = new PageActionDescriptor();
44
var
descriptor = new PageActionDescriptor();
69
var
descriptor = new PageActionDescriptor();
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (11)
17
var
descriptor = new PageActionDescriptor();
43
var
descriptor = new PageActionDescriptor();
78
var
descriptor = new PageActionDescriptor();
106
var
descriptor = new PageActionDescriptor();
133
var
descriptor = new PageActionDescriptor();
164
var
descriptor = new PageActionDescriptor();
195
var
descriptor = new PageActionDescriptor();
226
var
descriptor = new PageActionDescriptor();
261
var
descriptor = new PageActionDescriptor();
295
var
descriptor = new PageActionDescriptor();
326
var
descriptor = new PageActionDescriptor();
Infrastructure\DefaultPageLoaderTest.cs (6)
33
var
descriptor = new PageActionDescriptor();
105
var
descriptor = new PageActionDescriptor()
158
var
descriptor = new PageActionDescriptor();
222
var
descriptor = new PageActionDescriptor()
276
var
descriptor = new PageActionDescriptor()
284
var
descriptor2 = new PageActionDescriptor()
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (2)
79
.Setup(l => l.LoadAsync(It.IsAny<
PageActionDescriptor
>(), It.IsAny<EndpointMetadataCollection>()))
80
.Returns((
PageActionDescriptor
descriptor, EndpointMetadataCollection endpoint) => Task.FromResult(new CompiledPageActionDescriptor
Infrastructure\PageActionDescriptorProviderTest.cs (14)
61
var
descriptor = Assert.IsType<
PageActionDescriptor
>(result);
100
var
descriptor = Assert.IsType<
PageActionDescriptor
>(result);
150
var
descriptor = Assert.IsType<
PageActionDescriptor
>(result);
196
var
descriptor = Assert.IsType<
PageActionDescriptor
>(result);
230
var
descriptor = Assert.IsType<
PageActionDescriptor
>(result);
330
var
descriptor = Assert.IsType<
PageActionDescriptor
>(result);
337
var
descriptor = Assert.IsType<
PageActionDescriptor
>(result);
Infrastructure\PageActionEndpointDataSourceTest.cs (1)
273
var
action = new PageActionDescriptor();
Infrastructure\PageActionInvokerProviderTest.cs (8)
272
loader.Verify(l => l.LoadAsync(It.IsAny<
PageActionDescriptor
>(), It.IsAny<EndpointMetadataCollection>()), Times.Never());
279
var
descriptor = new PageActionDescriptor
306
loader.Verify(l => l.LoadAsync(It.IsAny<
PageActionDescriptor
>(), It.IsAny<EndpointMetadataCollection>()), Times.Once());
368
var
descriptor = new PageActionDescriptor()
382
.Setup(l => l.LoadAsync(It.IsAny<
PageActionDescriptor
>(), It.IsAny<EndpointMetadataCollection>()))
422
var
descriptor = new PageActionDescriptor()
431
.Setup(l => l.LoadAsync(It.IsAny<
PageActionDescriptor
>(), It.IsAny<EndpointMetadataCollection>()))
464
PageActionDescriptor
descriptor,