9 writes to Type
Microsoft.AspNetCore.Mvc.ApiExplorer (9)
ApiResponseTypeProvider.cs (7)
132Type = declaredReturnType, 226Type = metadataAttribute.Type, 240apiResponseType.Type = declaredReturnType; 247apiResponseType.Type = errorSetByDefault ? defaultErrorType : apiResponseType.Type; 251apiResponseType.Type = defaultErrorType; 325Type = metadata.Type, 335apiResponseType.Type = inferredType;
EndpointMetadataApiDescriptionProvider.cs (2)
376apiResponseType.Type = responseType; 489Type = responseType,
20 references to Type
Microsoft.AspNetCore.Mvc.Abstractions (2)
ApiExplorer\ApiResponseType.cs (2)
19/// Gets or sets <see cref="ModelBinding.ModelMetadata"/> for the <see cref="Type"/> or null. 22/// Will be null if <see cref="Type"/> is null or void.
Microsoft.AspNetCore.Mvc.ApiExplorer (18)
ApiResponseTypeProvider.cs (9)
153.ThenBy(responseType => responseType.Type?.Name) 232if (apiResponseType.Type == typeof(void)) 247apiResponseType.Type = errorSetByDefault ? defaultErrorType : apiResponseType.Type; 267if (apiResponseType.Type != null) 269var key = new ResponseKey(apiResponseType.StatusCode, apiResponseType.Type); 329if (apiResponseType.Type == null) 350if (apiResponseType.Type != null) 352var key = new ResponseKey(apiResponseType.StatusCode, apiResponseType.Type); 392var responseType = apiResponse.Type;
EndpointMetadataApiDescriptionProvider.cs (9)
374if (apiResponseType.Type is null || (apiResponseType.Type == typeof(void) && errorSetByDefault)) 379apiResponseType.ModelMetadata = CreateModelMetadata(apiResponseType.Type); 387else if (apiResponseType.ApiResponseFormats.Count == 0 && CreateDefaultApiResponseFormat(apiResponseType.Type) is { } defaultResponseFormat) 396existingResponseType.Type == apiResponseType.Type && 425.ThenBy(rt => rt.Type?.Name) 442TypesAreCompatible(apiResponseType.Type, metadata.Type) &&