1 write to EmitterContext
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\Endpoint.cs (1)
27
EmitterContext
= new EmitterContext();
42 references to EmitterContext
Microsoft.AspNetCore.Http.RequestDelegateGenerator (42)
RequestDelegateGenerator.cs (17)
165
.Select(endpoint => endpoint.
EmitterContext
.HttpMethod!)
174
var hasJsonBodyOrService = endpoints.Any(endpoint => endpoint.
EmitterContext
.HasJsonBodyOrService);
175
var hasJsonBodyOrQuery = endpoints.Any(endpoint => endpoint.
EmitterContext
.HasJsonBodyOrQuery);
176
var hasJsonBody = endpoints.Any(endpoint => endpoint.
EmitterContext
.HasJsonBody);
177
var hasFormBody = endpoints.Any(endpoint => endpoint.
EmitterContext
.HasFormBody);
178
var hasRouteOrQuery = endpoints.Any(endpoint => endpoint.
EmitterContext
.HasRouteOrQuery);
179
var hasBindAsync = endpoints.Any(endpoint => endpoint.
EmitterContext
.HasBindAsync);
180
var hasParsable = endpoints.Any(endpoint => endpoint.
EmitterContext
.HasParsable);
181
var hasEndpointMetadataProvider = endpoints.Any(endpoint => endpoint.
EmitterContext
.HasEndpointMetadataProvider);
182
var hasEndpointParameterMetadataProvider = endpoints.Any(endpoint => endpoint.
EmitterContext
.HasEndpointParameterMetadataProvider);
240
var hasFormBody = endpoints.Any(endpoint => endpoint.
EmitterContext
.HasFormBody);
241
var hasJsonBody = endpoints.Any(endpoint => endpoint.
EmitterContext
.HasJsonBody || endpoint.
EmitterContext
.HasJsonBodyOrService || endpoint.
EmitterContext
.HasJsonBodyOrQuery);
242
var hasResponseMetadata = endpoints.Any(endpoint => endpoint.
EmitterContext
.HasResponseMetadata);
243
var requiresPropertyAsParameterInfo = endpoints.Any(endpoint => endpoint.
EmitterContext
.RequiresPropertyAsParameterInfo);
244
var requiresParameterBindingMetadataClass = endpoints.Any(endpoint => endpoint.
EmitterContext
.RequiresParameterBindingMetadataClass);
StaticRouteHandlerModel\Emitters\EndpointEmitter.cs (2)
90
endpoint.
EmitterContext
.HasRouteOrQuery = true;
128
if (endpoint.
EmitterContext
.RequiresLoggingHelper)
StaticRouteHandlerModel\Endpoint.cs (4)
39
EmitterContext
.HasResponseMetadata = Response is { } response && !(response.IsIResult || response.HasNoResponse);
45
EmitterContext
.HasEndpointMetadataProvider = Response!.IsEndpointMetadataProvider;
49
EmitterContext
.RequiresLoggingHelper = false;
89
EmitterContext
.RequiresLoggingHelper = !Parameters.All(parameter =>
StaticRouteHandlerModel\EndpointParameter.cs (9)
49
endpoint.
EmitterContext
.RequiresPropertyAsParameterInfo = IsProperty;
63
endpoint.
EmitterContext
.HasEndpointParameterMetadataProvider |= IsEndpointParameterMetadataProvider;
64
endpoint.
EmitterContext
.HasEndpointMetadataProvider |= IsEndpointMetadataProvider;
220
endpoint.
EmitterContext
.RequiresPropertyAsParameterInfo = IsProperty && bindMethod is BindabilityMethod.BindAsyncWithParameter or BindabilityMethod.IBindableFromHttpContext;
250
endpoint.
EmitterContext
.HasParsable |= IsParsable;
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;
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (10)
46
(var verbSymbol, endpoint.
EmitterContext
.HttpMethod) = endpoint.HttpMethod switch
76
codeWriter.WriteLineNoTabs(endpoint.Parameters.EmitParameterPreparation(endpoint.
EmitterContext
, codeWriter.Indent));
186
codeWriter.WriteLineNoTabs(endpoint.Parameters.EmitParameterPreparation(endpoint.
EmitterContext
, codeWriter.Indent));
213
endpoint.
EmitterContext
.HasResponseMetadata = true;
242
if (endpoint.
EmitterContext
.HasEndpointParameterMetadataProvider)
354
var hasJsonBody = endpoint.
EmitterContext
.HasJsonBody || endpoint.
EmitterContext
.HasJsonBodyOrService || endpoint.
EmitterContext
.HasJsonBodyOrQuery;
356
if (endpoint.
EmitterContext
.HasFormBody)
372
endpoint.
EmitterContext
.RequiresParameterBindingMetadataClass = true;