9 implementations of IOutboundParameterTransformer
Microsoft.AspNetCore.Mvc.Core.Test (3)
ApplicationModels\RouteTokenTransformerConventionTest.cs (1)
56
private class TestParameterTransformer :
IOutboundParameterTransformer
Routing\ActionEndpointDataSourceBaseTest.cs (1)
156
private class UpperCaseParameterTransform :
IOutboundParameterTransformer
Routing\ActionEndpointFactoryTest.cs (1)
499
private class UpperCaseParameterTransform :
IOutboundParameterTransformer
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
ApplicationModels\PageRouteTransformerConventionTest.cs (1)
43
private class TestParameterTransformer :
IOutboundParameterTransformer
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (1)
156
private class UpperCaseParameterTransform :
IOutboundParameterTransformer
Microsoft.AspNetCore.Routing.Tests (2)
TestObjects\SlugifyParameterTransformer.cs (1)
8
public class SlugifyParameterTransformer :
IOutboundParameterTransformer
TestObjects\UpperCaseParameterTransform.cs (1)
6
public class UpperCaseParameterTransform :
IOutboundParameterTransformer
Mvc.RoutingWebSite (1)
TestParameterTransformer.cs (1)
8
public class SlugifyParameterTransformer :
IOutboundParameterTransformer
RoutingSandbox (1)
SlugifyParameterTransformer.cs (1)
8
public class SlugifyParameterTransformer :
IOutboundParameterTransformer
27 references to IOutboundParameterTransformer
Microsoft.AspNetCore.Mvc.Core (8)
ApplicationModels\ActionModel.cs (2)
113
/// Gets or sets an <see cref="
IOutboundParameterTransformer
"/> that will be used to transform
122
public
IOutboundParameterTransformer
? RouteParameterTransformer { get; set; }
ApplicationModels\AttributeRouteModel.cs (1)
264
public static string ReplaceTokens([StringSyntax("Route")] string template, IDictionary<string, string?> values,
IOutboundParameterTransformer
? routeTokenTransformer)
ApplicationModels\RouteTokenTransformerConvention.cs (5)
10
/// to use the specified <see cref="
IOutboundParameterTransformer
"/> on <see cref="ActionModel"/>.
15
private readonly
IOutboundParameterTransformer
_parameterTransformer;
18
/// Creates a new instance of <see cref="RouteTokenTransformerConvention"/> with the specified <see cref="
IOutboundParameterTransformer
"/>.
20
/// <param name="parameterTransformer">The <see cref="
IOutboundParameterTransformer
"/> to use with attribute routing token replacement.</param>
21
public RouteTokenTransformerConvention(
IOutboundParameterTransformer
parameterTransformer)
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\ActionModelTest.cs (1)
77
action.RouteParameterTransformer = Mock.Of<
IOutboundParameterTransformer
>();
ApplicationModels\RouteTokenTransformerConventionTest.cs (1)
66
public CustomRouteTokenTransformerConvention(
IOutboundParameterTransformer
parameterTransformer) : base(parameterTransformer)
Microsoft.AspNetCore.Mvc.RazorPages (7)
ApplicationModels\PageRouteModel.cs (2)
114
/// Gets or sets an <see cref="
IOutboundParameterTransformer
"/> that will be used to transform
123
public
IOutboundParameterTransformer
? RouteParameterTransformer { get; set; }
ApplicationModels\PageRouteTransformerConvention.cs (5)
10
/// to use the specified <see cref="
IOutboundParameterTransformer
"/> on <see cref="PageRouteModel"/>.
15
private readonly
IOutboundParameterTransformer
_parameterTransformer;
18
/// Creates a new instance of <see cref="PageRouteTransformerConvention"/> with the specified <see cref="
IOutboundParameterTransformer
"/>.
20
/// <param name="parameterTransformer">The <see cref="
IOutboundParameterTransformer
"/> to use resolve page routes.</param>
21
public PageRouteTransformerConvention(
IOutboundParameterTransformer
parameterTransformer)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
ApplicationModels\PageRouteTransformerConventionTest.cs (1)
53
public CustomPageRouteTransformerConvention(
IOutboundParameterTransformer
parameterTransformer) : base(parameterTransformer)
Microsoft.AspNetCore.Routing (8)
Matching\DfaMatcherBuilder.cs (1)
481
if (parameterPolicy is
IOutboundParameterTransformer
parameterTransformer)
Template\DefaultTemplateBinderFactory.cs (1)
52
if (!foundTransformer && parameterPolicy is
IOutboundParameterTransformer
parameterTransformer)
Template\TemplateBinder.cs (6)
27
private readonly (string parameterName,
IOutboundParameterTransformer
transformer)[] _parameterTransformers;
130
out (string parameterName,
IOutboundParameterTransformer
transformer)[] parameterTransformers)
133
List<(string parameterName,
IOutboundParameterTransformer
transformer)>? parameterTransformerList = null;
143
if (p.policy is
IOutboundParameterTransformer
transformer)
151
parameterTransformers = parameterTransformerList?.ToArray() ?? Array.Empty<(string,
IOutboundParameterTransformer
)>();
506
(var parameterName,
var
transformer) = parameterTransformers[i];
Mvc.RoutingWebSite (1)
ControllerRouteTokenTransformerConvention.cs (1)
12
public ControllerRouteTokenTransformerConvention(Type controllerType,
IOutboundParameterTransformer
parameterTransformer)