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