6 writes to LookupName
Microsoft.AspNetCore.Http.RequestDelegateGenerator (6)
StaticRouteHandlerModel\EndpointParameter.cs (6)
57
LookupName
= parameterName;
72
LookupName
= GetEscapedParameterName(fromRouteAttribute, symbol.Name);
79
LookupName
= GetEscapedParameterName(fromQueryAttribute, symbol.Name);
86
LookupName
= GetEscapedParameterName(fromHeaderAttribute, symbol.Name);
94
LookupName
= GetEscapedParameterName(fromFormAttribute, symbol.Name);
214
LookupName
= symbol.Name;
10 references to LookupName
Microsoft.AspNetCore.Http.RequestDelegateGenerator (10)
StaticRouteHandlerModel\Emitters\EndpointParameterEmitter.cs (6)
22
? $"httpContext.Request.Headers[\"{endpointParameter.
LookupName
}\"]"
23
: $"httpContext.Request.Query[\"{endpointParameter.
LookupName
}\"]";
196
codeWriter.WriteLine($"""if (options?.RouteParameterNames?.Contains("{endpointParameter.
LookupName
}", StringComparer.OrdinalIgnoreCase) != true)""");
198
codeWriter.WriteLine($$"""throw new InvalidOperationException($"'{{endpointParameter.
LookupName
}}' is not a route parameter.");""");
201
var assigningCode = $"(string?)httpContext.Request.RouteValues[\"{endpointParameter.
LookupName
}\"]";
307
codeWriter.WriteLine($"""var {endpointParameter.EmitAssigningCodeResult()} = httpContext.Request.Query["{endpointParameter.
LookupName
}"];""");
StaticRouteHandlerModel\EndpointParameter.cs (4)
103
AssigningCode = $"httpContext.Request.Form.Files[{SymbolDisplay.FormatLiteral(
LookupName
, true)}]";
121
? $"(string?)httpContext.Request.Form[{SymbolDisplay.FormatLiteral(
LookupName
, true)}]"
122
: $"httpContext.Request.Form[{SymbolDisplay.FormatLiteral(
LookupName
, true)}].ToArray()";
208
AssigningCode = $"httpContext.Request.Form.Files[{SymbolDisplay.FormatLiteral(
LookupName
, true)}]";