1 write to HasNoResponse
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\EndpointResponse.cs (1)
34
HasNoResponse
= method.ReturnsVoid || awaitableIsVoid;
15 references to HasNoResponse
Microsoft.AspNetCore.Http.RequestDelegateGenerator (15)
StaticRouteHandlerModel\Endpoint.cs (1)
39
EmitterContext.HasResponseMetadata = Response is { } response && !(response.IsIResult || response.
HasNoResponse
);
StaticRouteHandlerModel\EndpointResponse.cs (5)
74
!
HasNoResponse
&&
93
if (IsIResult ||
HasNoResponse
)
108
otherEndpointResponse.
HasNoResponse
==
HasNoResponse
&&
114
HashCode.Combine(SymbolEqualityComparer.Default.GetHashCode(ResponseType), SymbolEqualityComparer.Default.GetHashCode(WrappedResponseType), WrappedResponseTypeDisplayName, IsAwaitable,
HasNoResponse
, IsIResult, ContentType);
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (9)
26
return endpoint.Response == null || (endpoint.Response.
HasNoResponse
&& !endpoint.Response.IsAwaitable) ? "void ()" : $"{endpoint.Response.WrappedResponseTypeDisplayName} ()";
30
if (endpoint.Response == null || (endpoint.Response.
HasNoResponse
&& !endpoint.Response.IsAwaitable))
99
if (!endpoint.Response.
HasNoResponse
)
107
if (!endpoint.Response.
HasNoResponse
)
121
if (!endpointResponse.
HasNoResponse
156
else if (!endpointResponse.
HasNoResponse
)
160
else if (!endpointResponse.IsAwaitable && endpointResponse.
HasNoResponse
)
208
if (!endpoint.Response.IsAwaitable && (response.
HasNoResponse
|| response.IsIResult))
413
if (endpoint.Response?.
HasNoResponse
== true)