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