Skip to content

Commit 2418e1c

Browse files
Merge pull request #35449 from dotnet/main
Merge to Live
2 parents 985e93f + 5b625fe commit 2418e1c

File tree

6 files changed

+528
-275
lines changed

6 files changed

+528
-275
lines changed

aspnetcore/blazor/javascript-interoperability/call-javascript-from-dotnet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ Use `InvokeNew(string identifier, object?[]? args)` on <xref:Microsoft.JSInterop
498498
```csharp
499499
var inProcRuntime = ((IJSInProcessRuntime)JSRuntime);
500500
var classRef = inProcRuntime.InvokeNew("TestClass", "Blazor!");
501-
var text = await classRef.GetValueAsync<string>("text");
502-
var textLength = await classRef.InvokeAsync<int>("getTextLength");
501+
var text = classRef.GetValue<string>("text");
502+
var textLength = classRef.Invoke<int>("getTextLength");
503503
```
504504

505505
An overload is available that takes a <xref:System.Threading.CancellationToken> argument or <xref:System.TimeSpan> timeout argument.

aspnetcore/release-notes/aspnetcore-10.0.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +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+
58+
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/xml-comment-generator.md)]
59+
5660
[!INCLUDE[](~/release-notes/aspnetcore-10/includes/OpenApiSchemasInTransformers.md)]
5761

58-
## Authentication and authorization
62+
### Authentication and authorization
5963

6064
This section describes new features for authentication and authorization.
6165

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+

aspnetcore/release-notes/aspnetcore-10/includes/xml-comment-generator.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
## Improvements to XML comment generator
1+
### Improvements to the XML comment generator
22

3-
<!-- https://github.com/dotnet/aspnetcore/pull/61145 -->
3+
XML comment generation handles complex types in .NET 10 better than earlier versions of .NET.
44

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.
88

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.
1010

1111
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.
1212

@@ -15,14 +15,16 @@ This configuration is done with directives in the project build file. The follow
1515
```xml
1616
<Target Name="AddOpenApiDependencies" AfterTargets="ResolveReferences">
1717
<ItemGroup>
18-
<!-- Include XML documentation from Microsoft.AspNetCore.Http.Abstractions to get metadata for ProblemDetails -->
18+
<!-- Include XML documentation from Microsoft.AspNetCore.Http.Abstractions
19+
to get metadata for ProblemDetails -->
1920
<AdditionalFiles
20-
Include="@(ReferencePath->'%(RootDir)%(Directory)%(Filename).xml')"
21-
Condition="'%(ReferencePath.Filename)' == 'Microsoft.AspNetCore.Http.Abstractions'"
21+
Include="@(ReferencePath->'
22+
%(RootDir)%(Directory)%(Filename).xml')"
23+
Condition="'%(ReferencePath.Filename)' ==
24+
'Microsoft.AspNetCore.Http.Abstractions'"
2225
KeepMetadata="Identity;HintPath" />
2326
</ItemGroup>
2427
</Target>
2528
```
2629

2730
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.
28-
<!--[!INCLUDE[](~/release-notes/aspnetcore-10/includes/xml-comment-generation.md)] -->

0 commit comments

Comments
 (0)