You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
XML comment generation handles complex types in .NET 10 better than earlier versions of .NET.
4
4
5
-
<!-- it should throw fewer build errors now.
6
-
- It should also work with the Identity API XML comments but I haven't verified that.
7
-
- Maybe update docs about failure mode. -->
5
+
* It produces accurate and complete XML comments for a wider range of types.
6
+
* It handles more complex scenarios.
7
+
* It gracefully bypasses processing for complex types that cause build errors in earlier versions.
8
8
9
-
The XML comment generator has been enhanced to better handle complex types. In conjunction, the generator now gracefully bypasses processing for complex types that previously caused build errors. Taken together, these changes improve the robustness of XML comment generation but change the failure mode for certain scenarios from build errors to missing metadata.
9
+
These improvements change the failure mode for certain scenarios from build errors to missing metadata.
10
10
11
11
In addition, XML doc comment processing can now be configured to access XML comments in other assemblies. This is useful for generating documentation for types that are defined outside the current assembly, such as the `ProblemDetails` type in the `Microsoft.AspNetCore.Http` namespace.
12
12
@@ -15,14 +15,16 @@ This configuration is done with directives in the project build file. The follow
We expect to include XML comments from a selected set of assemblies in the shared framework in future previews, to avoid the need for this configuration in most cases.
0 commit comments