47 writes to PageTypeInfo
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
BindPropertyIntegrationTest.cs (1)
204
PageTypeInfo
= typeInfo,
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
57
PageTypeInfo
= applicationModel.PageType,
Microsoft.AspNetCore.Mvc.RazorPages.Test (45)
Infrastructure\DefaultPageActivatorProviderTest.cs (8)
37
PageTypeInfo
= type.GetTypeInfo(),
57
PageTypeInfo
= typeof(PageWithoutParameterlessConstructor).GetTypeInfo(),
79
PageTypeInfo
= pageType.GetTypeInfo()
99
PageTypeInfo
= pageType.GetTypeInfo()
118
PageTypeInfo
= page.GetType().GetTypeInfo()
139
PageTypeInfo
= page.GetType().GetTypeInfo()
160
PageTypeInfo
= page.GetType().GetTypeInfo()
181
PageTypeInfo
= page.GetType().GetTypeInfo()
Infrastructure\DefaultPageFactoryProviderTest.cs (11)
28
PageTypeInfo
= typeof(object).GetTypeInfo(),
47
PageTypeInfo
= typeof(TestPage).GetTypeInfo(),
73
PageTypeInfo
= typeof(TestPage).GetTypeInfo(),
109
PageTypeInfo
= typeof(ViewDataTestPage).GetTypeInfo(),
139
PageTypeInfo
= typeof(ViewDataTestPage).GetTypeInfo(),
166
PageTypeInfo
= typeof(ViewDataTestPage).GetTypeInfo(),
193
PageTypeInfo
= typeof(NonGenericViewDataTestPage).GetTypeInfo()
219
PageTypeInfo
= typeof(TestPage).GetTypeInfo()
258
PageTypeInfo
= typeof(PropertiesWithoutRazorInject).GetTypeInfo()
301
PageTypeInfo
= typeof(DisposablePage).GetTypeInfo()
339
PageTypeInfo
= typeof(DisposablePage).GetTypeInfo()
Infrastructure\DefaultPageModelActivatorProviderTest.cs (2)
100
PageTypeInfo
= pageType.GetTypeInfo(),
120
PageTypeInfo
= pageType.GetTypeInfo(),
Infrastructure\PageActionInvokerProviderTest.cs (2)
377
PageTypeInfo
= typeof(object).GetTypeInfo(),
487
PageTypeInfo
= pageTypeInfo,
Infrastructure\PageActionInvokerTest.cs (4)
1450
PageTypeInfo
= typeof(TestPage).GetTypeInfo(),
1584
PageTypeInfo
= typeof(TestPage).GetTypeInfo(),
1612
PageTypeInfo
= typeof(TestPage).GetTypeInfo(),
1640
PageTypeInfo
= typeof(TestPage).GetTypeInfo(),
Infrastructure\PageBinderFactoryTest.cs (13)
29
PageTypeInfo
= typeof(PageWithNoBoundProperties).GetTypeInfo(),
54
PageTypeInfo
= typeof(PageWithNoBoundProperties).GetTypeInfo(),
80
PageTypeInfo
= typeof(PageWithNoVisibleBoundProperties).GetTypeInfo(),
105
PageTypeInfo
= typeof(object).GetTypeInfo(),
131
PageTypeInfo
= typeof(PageWithReadOnlyProperties).GetTypeInfo(),
156
PageTypeInfo
= typeof(PageWithReadOnlyProperties).GetTypeInfo(),
206
PageTypeInfo
= type,
265
PageTypeInfo
= typeof(PageWithProperty).GetTypeInfo(),
319
PageTypeInfo
= typeof(PageWithProperty).GetTypeInfo(),
378
PageTypeInfo
= typeof(PageWithProperty).GetTypeInfo(),
437
PageTypeInfo
= typeof(PageWithProperty).GetTypeInfo(),
488
PageTypeInfo
= typeof(PageWithProperty).GetTypeInfo(),
535
PageTypeInfo
= typeof(PageWithProperty).GetTypeInfo(),
Infrastructure\ServiceBasedPageModelActivatorProviderTest.cs (1)
131
PageTypeInfo
= pageType.GetTypeInfo(),
PageLoggerExtensionsTest.cs (4)
26
PageTypeInfo
= typeof(ValueTuple<int, string>).GetTypeInfo()
54
PageTypeInfo
= typeof(ValueTuple<int, string>).GetTypeInfo()
82
PageTypeInfo
= typeof(ValueTuple<int, string>).GetTypeInfo()
110
PageTypeInfo
= typeof(ValueTuple<int, string>).GetTypeInfo()
19 references to PageTypeInfo
Microsoft.AspNetCore.Mvc.RazorPages (16)
CompiledPageActionDescriptor.cs (1)
39
/// the same as <see cref="
PageTypeInfo
"/> and <see cref="ModelTypeInfo"/> if the page does not have an
Infrastructure\DefaultPageActivatorProvider.cs (5)
24
var pageTypeInfo = actionDescriptor.
PageTypeInfo
?.AsType();
28
nameof(actionDescriptor.
PageTypeInfo
),
40
if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(actionDescriptor.
PageTypeInfo
))
52
if (typeof(IAsyncDisposable).GetTypeInfo().IsAssignableFrom(actionDescriptor.
PageTypeInfo
))
57
if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(actionDescriptor.
PageTypeInfo
))
Infrastructure\DefaultPageFactoryProvider.cs (3)
44
if (!typeof(PageBase).GetTypeInfo().IsAssignableFrom(actionDescriptor.
PageTypeInfo
))
52
var declaredModelType = actionDescriptor.DeclaredModelTypeInfo?.AsType() ?? actionDescriptor.
PageTypeInfo
.AsType();
54
actionDescriptor.
PageTypeInfo
.AsType(),
Infrastructure\PageActionInvoker.cs (2)
66
private bool HasPageModel => _actionDescriptor.HandlerTypeInfo != _actionDescriptor.
PageTypeInfo
;
164
if (_actionDescriptor.ModelTypeInfo == _actionDescriptor.
PageTypeInfo
)
Infrastructure\PageActionInvokerCache.cs (1)
87
if (compiledActionDescriptor.ModelTypeInfo != compiledActionDescriptor.
PageTypeInfo
)
PageLoggerExtensions.cs (4)
29
var pageType = context.ActionDescriptor.
PageTypeInfo
.AsType();
44
var pageType = context.ActionDescriptor.
PageTypeInfo
.AsType();
59
var pageType = context.ActionDescriptor.
PageTypeInfo
.AsType();
74
var pageType = context.ActionDescriptor.
PageTypeInfo
.AsType();
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (1)
86
Assert.Same(pageApplicationModel.PageType, actual.
PageTypeInfo
);
Infrastructure\DefaultPageFactoryProviderTest.cs (1)
391
return (context, viewContext) => Activator.CreateInstance(descriptor.
PageTypeInfo
.AsType());
Infrastructure\PageActionInvokerTest.cs (1)
1523
var instance = (Page)Activator.CreateInstance(actionDescriptor.
PageTypeInfo
.AsType());