19 references to DisplayFormat
Microsoft.AspNetCore.Http.RequestDelegateGenerator (19)
StaticRouteHandlerModel\Emitters\EndpointEmitter.cs (1)
121
codeWriter.WriteLine($"ResolveJsonBodyOrService<{parameter.Type.ToDisplayString(EmitterConstants.
DisplayFormat
)}>(logOrThrowExceptionHelper, {SymbolDisplay.FormatLiteral(shortParameterTypeName, true)}, {SymbolDisplay.FormatLiteral(parameter.SymbolName, true)}, jsonSerializerOptions, serviceProviderIsService);");
StaticRouteHandlerModel\Emitters\EndpointJsonPreparationEmitter.cs (2)
19
codeWriter.WriteLine($"var responseJsonTypeInfo = (JsonTypeInfo<{responseType.ToDisplayString(NullableFlowState.MaybeNull, EmitterConstants.
DisplayFormat
)}>)jsonSerializerOptions.GetTypeInfo(typeof({typeName}));");
40
var typeName = parameter.Type.ToDisplayString(EmitterConstants.
DisplayFormat
);
StaticRouteHandlerModel\Emitters\EndpointParameterEmitter.cs (11)
95
var createArray = $"new {endpointParameter.ElementType.ToDisplayString(EmitterConstants.
DisplayFormat
)}[{endpointParameter.EmitTempArgument()}.Length]";
98
codeWriter.WriteLine($"{endpointParameter.Type.ToDisplayString(EmitterConstants.
DisplayFormat
)} {endpointParameter.EmitHandlerArgument()} = {createArray};");
141
codeWriter.WriteLine($"""{endpointParameter.Type.ToDisplayString(EmitterConstants.
DisplayFormat
)} {output_argument} = default;""");
256
var assigningCode = $"await GeneratedRouteBuilderExtensionsCore.TryResolveBodyAsync<{endpointParameter.Type.ToDisplayString(EmitterConstants.
DisplayFormat
)}>(httpContext, logOrThrowExceptionHelper, {(endpointParameter.IsOptional ? "true" : "false")}, {SymbolDisplay.FormatLiteral(shortParameterTypeName, true)}, {SymbolDisplay.FormatLiteral(endpointParameter.SymbolName, true)}, {endpointParameter.SymbolName}_JsonTypeInfo)";
304
codeWriter.WriteLine($"{endpointParameter.Type.ToDisplayString(EmitterConstants.
DisplayFormat
)} {endpointParameter.EmitHandlerArgument()} = null!;");
317
var assigningCode = $"await GeneratedRouteBuilderExtensionsCore.TryResolveBodyAsync<{endpointParameter.Type.ToDisplayString(EmitterConstants.
DisplayFormat
)}>(httpContext, logOrThrowExceptionHelper, {(endpointParameter.IsOptional ? "true" : "false")}, {SymbolDisplay.FormatLiteral(shortParameterTypeName, true)}, {SymbolDisplay.FormatLiteral(endpointParameter.SymbolName, true)}, {endpointParameter.SymbolName}_JsonTypeInfo)";
319
codeWriter.WriteLine($"var {endpointParameter.SymbolName}_JsonTypeInfo = (JsonTypeInfo<{endpointParameter.Type.ToDisplayString(EmitterConstants.
DisplayFormat
)}>)jsonOptions.SerializerOptions.GetTypeInfo(typeof({endpointParameter.Type.ToDisplayString(EmitterConstants.DisplayFormatWithoutNullability)}));");
392
$"httpContext.RequestServices.GetService<{endpointParameter.Type.ToDisplayString(EmitterConstants.
DisplayFormat
)}>();" :
393
$"httpContext.RequestServices.GetRequiredService<{endpointParameter.Type.ToDisplayString(EmitterConstants.
DisplayFormat
)}>()";
407
$"httpContext.RequestServices.GetKeyedService<{endpointParameter.Type.ToDisplayString(EmitterConstants.
DisplayFormat
)}>({endpointParameter.KeyedServiceKey});" :
408
$"httpContext.RequestServices.GetRequiredKeyedService<{endpointParameter.Type.ToDisplayString(EmitterConstants.
DisplayFormat
)}>({endpointParameter.KeyedServiceKey})";
StaticRouteHandlerModel\EndpointResponse.cs (1)
32
WrappedResponseTypeDisplayName = method.ReturnType.ToDisplayString(EmitterConstants.
DisplayFormat
);
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (4)
41
return type.ToDisplayString(isOptional ? NullableFlowState.MaybeNull : NullableFlowState.NotNull, EmitterConstants.
DisplayFormat
);
237
codeWriter.WriteLine($"PopulateMetadataForEndpoint<{responseType.ToDisplayString(EmitterConstants.
DisplayFormat
)}>(methodInfo, options.EndpointBuilder);");
275
codeWriter.WriteLine($"PopulateMetadataForParameter<{parameterType.ToDisplayString(EmitterConstants.
DisplayFormat
)}>({parameter.SymbolName}_ParameterInfo, options.EndpointBuilder);");
280
codeWriter.WriteLine($"PopulateMetadataForEndpoint<{parameterType.ToDisplayString(EmitterConstants.
DisplayFormat
)}>(methodInfo, options.EndpointBuilder);");