Skip to content

There's no DocumentService. #36433

@voroninp

Description

@voroninp

Description

There's a suggestion to register the service builder.Services.AddScoped<DocumentService>();

However, in the referenced PR, we see

services.AddKeyedSingleton<IOpenApiDocumentProvider, OpenApiDocumentService>(documentName);

Page URL

https://learn.microsoft.com/en-us/aspnet/core/fundamentals/openapi/using-openapi-documents?view=aspnetcore-10.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/openapi/using-openapi-documents.md

Document ID

472b10ab-681b-f631-040d-025ef0a02329

Platform Id

c973de58-a013-4aa0-ccef-0bd78e4749db

Article author

@captainsafia

Metadata

  • ID: 472b10ab-681b-f631-040d-025ef0a02329
  • PlatformId: c973de58-a013-4aa0-ccef-0bd78e4749db
  • Service: aspnet-core
  • Sub-service: fundamentals

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions