24 instantiations of PageApplicationModelProviderContext
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\CompiledPageActionDescriptorFactory.cs (1)
37
var context = new
PageApplicationModelProviderContext
(actionDescriptor, viewDescriptor.Type!.GetTypeInfo());
Microsoft.AspNetCore.Mvc.RazorPages.Test (23)
ApplicationModels\AuthorizationPageApplicationModelProviderTest.cs (1)
195
var context = new
PageApplicationModelProviderContext
(new PageActionDescriptor(), typeInfo);
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (16)
24
var context = new
PageApplicationModelProviderContext
(descriptor, typeInfo);
65
var context = new
PageApplicationModelProviderContext
(descriptor, typeInfo);
88
var context = new
PageApplicationModelProviderContext
(descriptor, typeInfo);
113
var context = new
PageApplicationModelProviderContext
(descriptor, typeInfo);
138
var context = new
PageApplicationModelProviderContext
(descriptor, typeInfo);
193
var context = new
PageApplicationModelProviderContext
(descriptor, typeInfo);
236
var context = new
PageApplicationModelProviderContext
(descriptor, typeInfo);
290
var context = new
PageApplicationModelProviderContext
(descriptor, typeInfo);
333
var context = new
PageApplicationModelProviderContext
(descriptor, typeInfo);
375
var context = new
PageApplicationModelProviderContext
(descriptor, typeInfo);
422
var context = new
PageApplicationModelProviderContext
(descriptor, typeInfo);
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);
ApplicationModels\ResponseCacheFilterApplicationModelProviderTest.cs (1)
149
var context = new
PageApplicationModelProviderContext
(new PageActionDescriptor(), typeInfo);
ApplicationModels\TempDataFilterPageApplicationModelProviderTest.cs (1)
123
var context = new
PageApplicationModelProviderContext
(descriptor, typeof(TestPage).GetTypeInfo())
ApplicationModels\ViewDataAttributePageApplicationModelProviderTest.cs (1)
49
var context = new
PageApplicationModelProviderContext
(descriptor, typeof(TestPage).GetTypeInfo())
Filters\AutoValidateAntiforgeryPageApplicationModelProviderTest.cs (3)
24
var context = new
PageApplicationModelProviderContext
(new PageActionDescriptor(), typeof(object).GetTypeInfo())
46
var context = new
PageApplicationModelProviderContext
(descriptor, typeof(object).GetTypeInfo())
71
var context = new
PageApplicationModelProviderContext
(descriptor, typeof(object).GetTypeInfo())
84 references to PageApplicationModelProviderContext
Microsoft.AspNetCore.Mvc.RazorPages (19)
ApplicationModels\AuthorizationPageApplicationModelProvider.cs (2)
27
public void OnProvidersExecuting(
PageApplicationModelProviderContext
context)
50
public void OnProvidersExecuted(
PageApplicationModelProviderContext
context)
ApplicationModels\AutoValidateAntiforgeryPageApplicationModelProvider.cs (2)
14
public void OnProvidersExecuted(
PageApplicationModelProviderContext
context)
18
public void OnProvidersExecuting(
PageApplicationModelProviderContext
context)
ApplicationModels\DefaultPageApplicationModelProvider.cs (2)
42
public void OnProvidersExecuting(
PageApplicationModelProviderContext
context)
50
public void OnProvidersExecuted(
PageApplicationModelProviderContext
context)
ApplicationModels\IPageApplicationModelProvider.cs (5)
7
/// Builds or modifies an <see cref="
PageApplicationModelProviderContext
"/> for Razor Page discovery.
35
/// <param name="context">The <see cref="
PageApplicationModelProviderContext
"/>.</param>
36
void OnProvidersExecuting(
PageApplicationModelProviderContext
context);
41
/// <param name="context">The <see cref="
PageApplicationModelProviderContext
"/>.</param>
42
void OnProvidersExecuted(
PageApplicationModelProviderContext
context);
ApplicationModels\PageApplicationModelProviderContext.cs (1)
15
/// Instantiates a new instance of <see cref="
PageApplicationModelProviderContext
"/>.
ApplicationModels\ResponseCacheFilterApplicationModelProvider.cs (2)
27
public void OnProvidersExecuting(
PageApplicationModelProviderContext
context)
40
public void OnProvidersExecuted(
PageApplicationModelProviderContext
context)
ApplicationModels\TempDataFilterPageApplicationModelProvider.cs (2)
22
public void OnProvidersExecuted(
PageApplicationModelProviderContext
context)
26
public void OnProvidersExecuting(
PageApplicationModelProviderContext
context)
ApplicationModels\ViewDataAttributePageApplicationModelProvider.cs (2)
16
public void OnProvidersExecuted(
PageApplicationModelProviderContext
context)
21
public void OnProvidersExecuting(
PageApplicationModelProviderContext
context)
Infrastructure\CompiledPageActionDescriptorFactory.cs (1)
37
var
context = new PageApplicationModelProviderContext(actionDescriptor, viewDescriptor.Type!.GetTypeInfo());
Microsoft.AspNetCore.Mvc.RazorPages.Test (65)
ApplicationModels\AuthorizationPageApplicationModelProviderTest.cs (7)
26
var
context = GetApplicationProviderContext(typeInfo);
60
var
context = GetApplicationProviderContext(typeInfo);
78
var
context = GetApplicationProviderContext(typeof(TestPage).GetTypeInfo());
117
var
context = GetApplicationProviderContext(typeof(TestPageWithDerivedModel).GetTypeInfo());
160
var
context = GetApplicationProviderContext(typeof(PageWithAnonymousModel).GetTypeInfo());
186
private static
PageApplicationModelProviderContext
GetApplicationProviderContext(TypeInfo typeInfo)
195
var
context = new PageApplicationModelProviderContext(new PageActionDescriptor(), typeInfo);
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (16)
24
var
context = new PageApplicationModelProviderContext(descriptor, typeInfo);
65
var
context = new PageApplicationModelProviderContext(descriptor, typeInfo);
88
var
context = new PageApplicationModelProviderContext(descriptor, typeInfo);
113
var
context = new PageApplicationModelProviderContext(descriptor, typeInfo);
138
var
context = new PageApplicationModelProviderContext(descriptor, typeInfo);
193
var
context = new PageApplicationModelProviderContext(descriptor, typeInfo);
236
var
context = new PageApplicationModelProviderContext(descriptor, typeInfo);
290
var
context = new PageApplicationModelProviderContext(descriptor, typeInfo);
333
var
context = new PageApplicationModelProviderContext(descriptor, typeInfo);
375
var
context = new PageApplicationModelProviderContext(descriptor, typeInfo);
422
var
context = new PageApplicationModelProviderContext(descriptor, typeInfo);
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);
ApplicationModels\ResponseCacheFilterApplicationModelProviderTest.cs (5)
25
var
context = GetApplicationProviderContext(typeInfo);
59
var
context = GetApplicationProviderContext(typeInfo);
106
var
context = GetApplicationProviderContext(typeInfo);
140
private static
PageApplicationModelProviderContext
GetApplicationProviderContext(TypeInfo typeInfo)
149
var
context = new PageApplicationModelProviderContext(new PageActionDescriptor(), typeInfo);
ApplicationModels\TempDataFilterPageApplicationModelProviderTest.cs (8)
20
var
context = CreateProviderContext(type);
37
var
context = CreateProviderContext(type);
54
var
context = CreateProviderContext(type);
67
var
context = CreateProviderContext(type);
83
var
context = CreateProviderContext(type);
105
var
context = CreateProviderContext(type);
120
private static
PageApplicationModelProviderContext
CreateProviderContext(Type handlerType)
123
var
context = new PageApplicationModelProviderContext(descriptor, typeof(TestPage).GetTypeInfo())
ApplicationModels\ViewDataAttributePageApplicationModelProviderTest.cs (4)
18
var
context = CreateProviderContext(type);
33
var
context = CreateProviderContext(type);
46
private static
PageApplicationModelProviderContext
CreateProviderContext(Type handlerType)
49
var
context = new PageApplicationModelProviderContext(descriptor, typeof(TestPage).GetTypeInfo())
Filters\AutoValidateAntiforgeryPageApplicationModelProviderTest.cs (3)
24
var
context = new PageApplicationModelProviderContext(new PageActionDescriptor(), typeof(object).GetTypeInfo())
46
var
context = new PageApplicationModelProviderContext(descriptor, typeof(object).GetTypeInfo())
71
var
context = new PageApplicationModelProviderContext(descriptor, typeof(object).GetTypeInfo())
Infrastructure\DefaultPageLoaderTest.cs (22)
47
provider1.Setup(p => p.OnProvidersExecuting(It.IsAny<
PageApplicationModelProviderContext
>()))
48
.Callback((
PageApplicationModelProviderContext
c) =>
56
provider2.Setup(p => p.OnProvidersExecuting(It.IsAny<
PageApplicationModelProviderContext
>()))
57
.Callback((
PageApplicationModelProviderContext
c) =>
65
provider1.Setup(p => p.OnProvidersExecuted(It.IsAny<
PageApplicationModelProviderContext
>()))
66
.Callback((
PageApplicationModelProviderContext
c) =>
73
provider2.Setup(p => p.OnProvidersExecuted(It.IsAny<
PageApplicationModelProviderContext
>()))
74
.Callback((
PageApplicationModelProviderContext
c) =>
127
provider.Setup(p => p.OnProvidersExecuting(It.IsAny<
PageApplicationModelProviderContext
>()))
128
.Callback((
PageApplicationModelProviderContext
c) =>
169
provider1.Setup(p => p.OnProvidersExecuting(It.IsAny<
PageApplicationModelProviderContext
>()))
170
.Callback((
PageApplicationModelProviderContext
c) =>
177
provider2.Setup(p => p.OnProvidersExecuting(It.IsAny<
PageApplicationModelProviderContext
>()))
178
.Callback((
PageApplicationModelProviderContext
c) =>
184
provider1.Setup(p => p.OnProvidersExecuted(It.IsAny<
PageApplicationModelProviderContext
>()))
185
.Callback((
PageApplicationModelProviderContext
c) =>
191
provider2.Setup(p => p.OnProvidersExecuted(It.IsAny<
PageApplicationModelProviderContext
>()))
192
.Callback((
PageApplicationModelProviderContext
c) =>
244
provider.Setup(p => p.OnProvidersExecuting(It.IsAny<
PageApplicationModelProviderContext
>()))
245
.Callback((
PageApplicationModelProviderContext
c) =>
304
provider.Setup(p => p.OnProvidersExecuting(It.IsAny<
PageApplicationModelProviderContext
>()))
305
.Callback((
PageApplicationModelProviderContext
c) =>