17 instantiations of AcceptsMetadata
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
2101
factoryContext.EndpointBuilder.Metadata.Add(new
AcceptsMetadata
(contentTypes, type, factoryContext.AllowEmptyRequestBody));
Microsoft.AspNetCore.Identity (12)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\GeneratedRouteBuilderExtensions.g.cs (12)
75
options.EndpointBuilder.Metadata.Add(new
AcceptsMetadata
(type: typeof(global::Microsoft.AspNetCore.Identity.Data.RegisterRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
194
options.EndpointBuilder.Metadata.Add(new
AcceptsMetadata
(type: typeof(global::Microsoft.AspNetCore.Identity.Data.LoginRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
380
options.EndpointBuilder.Metadata.Add(new
AcceptsMetadata
(type: typeof(global::Microsoft.AspNetCore.Identity.Data.PasskeyRequestOptionsRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
495
options.EndpointBuilder.Metadata.Add(new
AcceptsMetadata
(type: typeof(global::Microsoft.AspNetCore.Identity.Data.PasskeyLoginRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
681
options.EndpointBuilder.Metadata.Add(new
AcceptsMetadata
(type: typeof(global::Microsoft.AspNetCore.Identity.Data.RefreshRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
943
options.EndpointBuilder.Metadata.Add(new
AcceptsMetadata
(type: typeof(global::Microsoft.AspNetCore.Identity.Data.ResendConfirmationEmailRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
1062
options.EndpointBuilder.Metadata.Add(new
AcceptsMetadata
(type: typeof(global::Microsoft.AspNetCore.Identity.Data.ForgotPasswordRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
1178
options.EndpointBuilder.Metadata.Add(new
AcceptsMetadata
(type: typeof(global::Microsoft.AspNetCore.Identity.Data.ResetPasswordRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
1396
options.EndpointBuilder.Metadata.Add(new
AcceptsMetadata
(type: typeof(global::Microsoft.AspNetCore.Identity.Data.PasskeyRegistrationRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
1617
options.EndpointBuilder.Metadata.Add(new
AcceptsMetadata
(type: typeof(global::Microsoft.AspNetCore.Identity.Data.PasskeyUpdateRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
1878
options.EndpointBuilder.Metadata.Add(new
AcceptsMetadata
(type: typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
2099
options.EndpointBuilder.Metadata.Add(new
AcceptsMetadata
(type: typeof(global::Microsoft.AspNetCore.Identity.Data.InfoRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
JsonPatchDocument.cs (1)
232
builder.Metadata.Add(new
AcceptsMetadata
(["application/json-patch+json"], parameter.ParameterType));
JsonPatchDocumentOfT.cs (1)
668
builder.Metadata.Add(new
AcceptsMetadata
(["application/json-patch+json"], typeof(TModel)));
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ActionEndpointFactory.cs (1)
426
builder.Metadata.Add(new
AcceptsMetadata
(consumesAttribute.ContentTypes.ToArray()));
Microsoft.AspNetCore.Routing (1)
Builder\OpenApiRouteHandlerBuilderExtensions.cs (1)
280
return builder.WithMetadata(new
AcceptsMetadata
(contentTypes, requestType, isOptional));
2 references to AcceptsMetadata
Microsoft.AspNetCore.Http.Abstractions (1)
Metadata\AcceptsMetadata.cs (1)
16
/// Creates a new instance of <see cref="
AcceptsMetadata
"/> with a type.
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ActionEndpointFactory.cs (1)
424
!builder.Metadata.OfType<
AcceptsMetadata
>().Any())