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