Implemented interface member:
property
ContentTypes
Microsoft.AspNetCore.Http.Metadata.IAcceptsMetadata.ContentTypes
1 write to ContentTypes
Microsoft.AspNetCore.Http.Abstractions (1)
Metadata\AcceptsMetadata.cs (1)
26
ContentTypes
= contentTypes;
4 references to ContentTypes
Microsoft.AspNetCore.Http.Abstractions (2)
Metadata\AcceptsMetadata.cs (2)
48
return DebuggerHelpers.GetDebugText(nameof(
ContentTypes
),
ContentTypes
, nameof(RequestType), RequestType, nameof(IsOptional), IsOptional, includeNullValues: false, prefix: "Accepts");
Microsoft.AspNetCore.Routing.Tests (2)
Builder\OpenApiRouteHandlerBuilderExtensionsTest.cs (1)
117
Assert.Equal("text/plain", Assert.Single(metadata.
ContentTypes
));
Matching\AcceptsMatcherPolicyTest.cs (1)
616
$"test: {template} - {string.Join(", ", consumesMetadata?.
ContentTypes
?? Array.Empty<string>())}");