21 writes to Source
Microsoft.AspNetCore.Http.RequestDelegateGenerator (21)
StaticRouteHandlerModel\EndpointParameter.cs (21)
58
Source
= EndpointParameterSource.Unknown;
71
Source
= EndpointParameterSource.Route;
78
Source
= EndpointParameterSource.Query;
85
Source
= EndpointParameterSource.Header;
93
Source
= EndpointParameterSource.FormBody;
131
Source
= EndpointParameterSource.SpecialType;
136
Source
= EndpointParameterSource.SpecialType;
142
Source
= EndpointParameterSource.JsonBody;
148
Source
= EndpointParameterSource.Service;
157
Source
= EndpointParameterSource.KeyedService;
163
Source
= EndpointParameterSource.AsParameters;
193
Source
= EndpointParameterSource.SpecialType;
199
Source
= EndpointParameterSource.FormBody;
206
Source
= EndpointParameterSource.FormBody;
213
Source
= EndpointParameterSource.FormBody;
221
Source
= EndpointParameterSource.BindAsync;
227
Source
= EndpointParameterSource.RouteOrQuery;
232
Source
= EndpointParameterSource.JsonBodyOrQuery;
236
Source
= EndpointParameterSource.Query;
241
Source
= EndpointParameterSource.RouteOrQuery;
248
Source
= EndpointParameterSource.JsonBodyOrService;
26 references to Source
Microsoft.AspNetCore.Http.RequestDelegateGenerator (26)
StaticRouteHandlerModel\Emitters\EmitterExtensions.cs (2)
12
public static string ToMessageString(this EndpointParameter endpointParameter) => endpointParameter.
Source
switch
38
public static string EmitArgument(this EndpointParameter endpointParameter) => endpointParameter.
Source
switch
StaticRouteHandlerModel\Emitters\EndpointEmitter.cs (5)
22
switch (parameter.
Source
)
74
if (parameter is {
Source
: EndpointParameterSource.AsParameters, EndpointParameters: {} innerParameters })
85
if (parameter.
Source
== EndpointParameterSource.RouteOrQuery)
101
if (parameter is {
Source
: EndpointParameterSource.AsParameters, EndpointParameters: {} innerParameters })
112
if (parameter.
Source
== EndpointParameterSource.JsonBodyOrService)
StaticRouteHandlerModel\Emitters\EndpointJsonPreparationEmitter.cs (2)
25
if (parameter is {
Source
: EndpointParameterSource.AsParameters, EndpointParameters: {} innerParameters })
36
if (parameter.
Source
!= EndpointParameterSource.JsonBody)
StaticRouteHandlerModel\Emitters\EndpointParameterEmitter.cs (2)
21
var assigningCode = endpointParameter.
Source
is EndpointParameterSource.Header
419
private static string EmitParameterDiagnosticComment(this EndpointParameter endpointParameter) => $"// Endpoint Parameter: {endpointParameter.SymbolName} (Type = {endpointParameter.Type}, IsOptional = {endpointParameter.IsOptional}, IsParsable = {endpointParameter.IsParsable}, IsArray = {endpointParameter.IsArray}, Source = {endpointParameter.
Source
})";
StaticRouteHandlerModel\Endpoint.cs (3)
65
switch (parameter.
Source
)
91
parameter.
Source
== EndpointParameterSource.SpecialType ||
92
parameter is { IsArray: true, ElementType.SpecialType: SpecialType.System_String,
Source
: EndpointParameterSource.Query });
StaticRouteHandlerModel\EndpointParameter.cs (6)
253
endpoint.EmitterContext.HasFormBody |=
Source
== EndpointParameterSource.FormBody;
254
endpoint.EmitterContext.HasJsonBody |=
Source
== EndpointParameterSource.JsonBody;
255
endpoint.EmitterContext.HasJsonBodyOrService |=
Source
== EndpointParameterSource.JsonBodyOrService;
256
endpoint.EmitterContext.HasJsonBodyOrQuery |=
Source
== EndpointParameterSource.JsonBodyOrQuery;
590
other.
Source
==
Source
&&
StaticRouteHandlerModel\Model\EndpointParameterExtensions.cs (1)
18
return parameter.
Source
== EndpointParameterSource.BindAsync ? handlerParameterType.UnwrapTypeSymbol(unwrapNullable: true) : handlerParameterType;
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (5)
249
if (parameter is {
Source
: EndpointParameterSource.AsParameters, EndpointParameters: { } innerParameters })
307
if (explicitBodyParameter == null && parameter.
Source
== EndpointParameterSource.JsonBody)
312
else if (parameter.
Source
== EndpointParameterSource.JsonBodyOrService || parameter.
Source
== EndpointParameterSource.JsonBodyOrQuery)
396
var hasBindAsync = parameter.
Source
== EndpointParameterSource.BindAsync ? "true" : "false";