Skip to content

Commit 5b625fe

Browse files
tdykstraCopilotRick-Andersonmikekistler
authored
WN10.P4 Support IOpenApiDocumentProvider in DI container (#35428)
* edit pass * Update aspnetcore/release-notes/aspnetcore-10/includes/doc-provider-in-di.md Co-authored-by: Copilot <[email protected]> * Update aspnetcore-10.0.md move include ref to the article file * Update aspnetcore/release-notes/aspnetcore-10/includes/doc-provider-in-di.md Co-authored-by: Copilot <[email protected]> * Update aspnetcore/release-notes/aspnetcore-10/includes/doc-provider-in-di.md * Update aspnetcore/release-notes/aspnetcore-10/includes/doc-provider-in-di.md Co-authored-by: Rick Anderson <[email protected]> * Update aspnetcore/release-notes/aspnetcore-10.0.md * Update aspnetcore/release-notes/aspnetcore-10/includes/doc-provider-in-di.md * Update aspnetcore/release-notes/aspnetcore-10/includes/doc-provider-in-di.md Co-authored-by: Copilot <[email protected]> * Update aspnetcore/release-notes/aspnetcore-10/includes/doc-provider-in-di.md Co-authored-by: Mike Kistler <[email protected]> --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: Rick Anderson <[email protected]> Co-authored-by: Mike Kistler <[email protected]>
1 parent 27c85be commit 5b625fe

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

aspnetcore/release-notes/aspnetcore-10.0.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ This section describes new features for OpenAPI.
5353

5454
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/webapiaotTemplateAddedOpenAPI.md)]
5555

56+
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/doc-provider-in-di.md)]
57+
5658
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/xml-comment-generator.md)]
5759

5860
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/OpenApiSchemasInTransformers.md)]
5961

60-
## Authentication and authorization
62+
### Authentication and authorization
6163

6264
This section describes new features for authentication and authorization.
6365

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## Support for IOpenApiDocumentProvider in the DI container.
2-
<!-- https://github.com/dotnet/aspnetcore/pull/61463 -->
3-
ASP.NET has added support for `IOpenApiDocumentProvider` in the DI container.
4-
This allows you to inject the `IOpenApiDocumentProvider` into your application and use it to access the OpenAPI document.
5-
This is useful for scenarios where you need to access the OpenAPI document outside of the context of an HTTP request,
6-
such as in a background service or a custom middleware.
2+
3+
ASP.NET Core in .NET 10 supports [IOpenApiDocumentProvider](https://source.dot.net/#Microsoft.AspNetCore.OpenApi/Services/IOpenApiDocumentProvider.cs) in the dependency injection (DI) container. Developers can inject `IOpenApiDocumentProvider` into their apps and use it to access the OpenAPI document. This approach is useful for accessing OpenAPI documents outside the context of HTTP requests, such as in background services or custom middleware.
4+
5+
Previously, running application startup logic without launching an HTTP server could be done by using `HostFactoryResolver` with a no-op `IServer` implementation. The new feature simplifies this process by providing a streamlined API inspired by Aspire's <xref:Aspire.Hosting.Publishing.IDistributedApplicationPublisher>, which is part of Aspire's framework for distributed application hosting and publishing. For more information, see [Aspire Documentation](https://aspire.example.com/docs/distributed-application-publisher).
6+
7+

0 commit comments

Comments
 (0)