22 references to WithMetadata
Microsoft.AspNetCore.Http.Connections (3)
ConnectionEndpointRouteBuilderExtensions.cs (3)
106negotiateBuilder.WithMetadata(_negotiateMetadata); 107negotiateBuilder.WithMetadata(options); 116executeBuilder.WithMetadata(new DisableRequestTimeoutAttribute());
Microsoft.AspNetCore.Routing (15)
Builder\FallbackEndpointRouteBuilderExtensions.cs (1)
80conventionBuilder.WithMetadata(FallbackMetadata.Instance);
Builder\OpenApiRouteHandlerBuilderExtensions.cs (9)
26=> builder.WithMetadata(_excludeFromDescriptionMetadataAttribute); 84return builder.WithMetadata(new ProducesResponseTypeMetadata(statusCode, responseType ?? typeof(void))); 91return builder.WithMetadata(new ProducesResponseTypeMetadata(statusCode, responseType ?? typeof(void), contentTypes)); 130return builder.WithMetadata(new ProducesResponseTypeMetadata(statusCode, typeof(ProblemDetails), [contentType])); 175return builder.WithMetadata(new ProducesResponseTypeMetadata(statusCode, typeof(HttpValidationProblemDetails), [contentType])); 191=> builder.WithMetadata(new TagsAttribute(tags)); 280return builder.WithMetadata(new AcceptsMetadata(contentTypes, requestType, isOptional)); 291=> builder.WithMetadata(new EndpointDescriptionAttribute(description)); 301=> builder.WithMetadata(new EndpointSummaryAttribute(summary));
Builder\RoutingEndpointConventionBuilderExtensions.cs (4)
125builder.WithMetadata(new EndpointNameMetadata(endpointName), new RouteNameMetadata(endpointName)); 139builder.WithMetadata(new EndpointGroupNameAttribute(endpointGroupName)); 197builder.WithMetadata(new FormMappingOptionsMetadata(maxCollectionSize, maxRecursionDepth, maxKeySize)); 232builder.WithMetadata(new FormOptionsMetadata(bufferBody, memoryBufferThreshold, bufferBodyLengthLimit, valueCountLimit, keyLengthLimit, valueLengthLimit, multipartBoundaryLengthLimit, multipartHeadersCountLimit, multipartHeadersLengthLimit, multipartBodyLengthLimit));
Builder\ValidationRouteHandlerBuilderExtensions.cs (1)
25builder.WithMetadata(new DisableValidationMetadata());
Microsoft.AspNetCore.StaticFiles (4)
StaticFilesEndpointRouteBuilderExtensions.cs (4)
56.WithMetadata(new HttpMethodMetadata(_supportedHttpMethods)); 92.WithMetadata(new HttpMethodMetadata(_supportedHttpMethods)); 135.WithMetadata(new HttpMethodMetadata(_supportedHttpMethods)); 177.WithMetadata(new HttpMethodMetadata(_supportedHttpMethods));