1 write to Parameters
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\Endpoint.cs (1)
87
Parameters
= parameters;
32 references to Parameters
Microsoft.AspNetCore.Http.RequestDelegateGenerator (32)
StaticRouteHandlerModel\Emitters\EndpointEmitter.cs (3)
71
foreach (var parameter in endpoint.
Parameters
)
98
foreach (var parameter in endpoint.
Parameters
)
134
public static string EmitArgumentList(this Endpoint endpoint) => string.Join(", ", endpoint.
Parameters
.Select(p => p.EmitArgument()));
StaticRouteHandlerModel\Emitters\EndpointJsonPreparationEmitter.cs (1)
22
foreach (var parameter in endpoint.
Parameters
)
StaticRouteHandlerModel\Endpoint.cs (7)
89
EmitterContext.RequiresLoggingHelper = !
Parameters
.All(parameter =>
120
a.
Parameters
.Length != b.
Parameters
.Length)
125
for (var i = 0; i < a.
Parameters
.Length; i++)
127
if (!a.
Parameters
[i].SignatureEquals(b.
Parameters
[i]))
142
foreach (var parameter in endpoint.
Parameters
)
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (21)
24
if (endpoint.
Parameters
.Length == 0)
28
var parameterTypeList = string.Join(", ", endpoint.
Parameters
.Select((p, i) => $"{EmitUnwrappedParameterType(p)} arg{i}{(p.HasDefaultValue ? $"= {p.DefaultValue}" : string.Empty)}"));
74
if (endpoint.
Parameters
.Length > 0)
76
codeWriter.WriteLineNoTabs(endpoint.
Parameters
.EmitParameterPreparation(endpoint.EmitterContext, codeWriter.Indent));
172
var argumentList = endpoint.
Parameters
.Length == 0 ? string.Empty : $", {endpoint.EmitArgumentList()}";
173
var invocationCreator = endpoint.
Parameters
.Length > 8
176
var invocationGenericArgs = endpoint.
Parameters
.Length is > 0 and < 8
184
if (endpoint.
Parameters
.Length > 0)
186
codeWriter.WriteLineNoTabs(endpoint.
Parameters
.EmitParameterPreparation(endpoint.EmitterContext, codeWriter.Indent));
247
foreach (var parameter in endpoint.
Parameters
)
288
var hasFormFiles = endpoint.
Parameters
.Any(p => p.IsFormFile);
305
foreach (var parameter in endpoint.
Parameters
)
370
foreach (var parameter in endpoint.
Parameters
)
443
if (endpoint.
Parameters
.Length == 0)
450
for (var i = 0; i < endpoint.
Parameters
.Length; i++)
456
sb.Append($"ic.GetArgument<{EmitUnwrappedParameterType(endpoint.
Parameters
[i])}>({i})!");
458
if (i < endpoint.
Parameters
.Length - 1)
469
if (endpoint.
Parameters
.Length == 0)
476
for (var i = 0; i < endpoint.
Parameters
.Length; i++)
478
sb.Append(EmitUnwrappedParameterType(endpoint.
Parameters
[i]));
480
if (i < endpoint.
Parameters
.Length - 1)