1 write to ResponseType
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\EndpointResponse.cs (1)
30ResponseType = UnwrapResponseType(method, out bool isAwaitable, out bool awaitableIsVoid);
24 references to ResponseType
Microsoft.AspNetCore.Http.RequestDelegateGenerator (24)
StaticRouteHandlerModel\Emitters\DiagnosticEmitter.cs (3)
14if (response.ResponseType is ITypeParameterSymbol) 19if (response.ResponseType?.DeclaredAccessibility is Accessibility.Private or Accessibility.Protected) 24if (response.ResponseType?.IsAnonymousType == true)
StaticRouteHandlerModel\Emitters\EmitterExtensions.cs (1)
28if (endpointResponse is { IsSerializable: true, ResponseType: { } responseType })
StaticRouteHandlerModel\Emitters\EndpointJsonPreparationEmitter.cs (3)
48if (endpointResponse.ResponseType != null && 49(endpointResponse.ResponseType.IsSealed || endpointResponse.ResponseType.IsValueType))
StaticRouteHandlerModel\EndpointResponse.cs (10)
38IsEndpointMetadataProvider = ImplementsIEndpointMetadataProvider(ResponseType, wellKnownTypes); 75ResponseType != null && 76ResponseType.SpecialType != SpecialType.System_String && 77ResponseType.SpecialType != SpecialType.System_Object; 82return WellKnownTypes.Implements(ResponseType, resultType) || 83SymbolEqualityComparer.Default.Equals(ResponseType, resultType); 98return ResponseType!.SpecialType is SpecialType.System_String ? "text/plain; charset=utf-8" : "application/json"; 104SymbolEqualityComparer.Default.Equals(otherEndpointResponse.ResponseType, ResponseType) && 114HashCode.Combine(SymbolEqualityComparer.Default.GetHashCode(ResponseType), SymbolEqualityComparer.Default.GetHashCode(WrappedResponseType), WrappedResponseTypeDisplayName, IsAwaitable, HasNoResponse, IsIResult, ContentType);
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (7)
122&& endpointResponse.ResponseType is { } responseType 148else if (endpointResponse.ResponseType?.SpecialType == SpecialType.System_String) 152else if (endpointResponse.ResponseType?.SpecialType == SpecialType.System_Object) 214if (response.ResponseType?.SpecialType == SpecialType.System_String) 218else if (response.IsAwaitable && response.ResponseType == null) 222else if (response.ResponseType is { } responseType) 230if (endpoint.Response is not { } response || response.ResponseType is not { } responseType)