4 writes to State
Microsoft.AspNetCore.Mvc.Core (1)
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
98
transformer.
State
= transformerMetadata.State;
Microsoft.AspNetCore.Mvc.Core.Test (1)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (1)
229
RequestServices = new ServiceCollection().AddScoped(sp => new CustomTransformer {
State
= "Invalid" }).BuildServiceProvider(),
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
99
transformer.
State
= transformerMetadata.State;
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (1)
290
RequestServices = new ServiceCollection().AddScoped(sp => new CustomTransformer() {
State
= "Invalid" }).BuildServiceProvider()
13 references to State
Microsoft.AspNetCore.Mvc.Core (4)
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
94
if (transformer.
State
!= null)
Routing\DynamicRouteValueTransformer.cs (3)
31
/// <item><description><see cref="
State
" /> is set</description></item>
42
/// lifetime. Implementations that make use of <see cref="
State
" /> must be registered as transient.
51
/// Implementations that make use of <see cref="
State
" /> must be registered as transient with the service
Microsoft.AspNetCore.Mvc.Core.Test (2)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (2)
453
return Transform(httpContext, values,
State
);
458
return Filter(httpContext, values,
State
, endpoints);
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
95
if (transformer.
State
!= null)
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (2)
453
return Filter(httpContext, values,
State
, endpoints);
458
return Transform(httpContext, values,
State
);
Mvc.RoutingWebSite (4)
StartupForDynamic.cs (2)
60
results["version"] = ((DynamicVersion)
State
).Version;
67
var version = ((DynamicVersion)
State
).Version;
StartupForDynamicOrder.cs (2)
95
var state = (TransformerState)
State
;
116
results["identifier"] = ((TransformerState)
State
).Identifier;