-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50596 from dotnet-maestro-bot/merge/release/8.0-t…
…o-main [automated] Merge branch 'release/8.0' => 'main'
- Loading branch information
Showing
48 changed files
with
1,379 additions
and
532 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...ts/Endpoints/src/DependencyInjection/DefaultRazorComponentsServiceOptionsConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using Microsoft.AspNetCore.Components.Endpoints; | ||
using Microsoft.AspNetCore.Components.Endpoints.FormMapping; | ||
using Microsoft.AspNetCore.Hosting; | ||
using Microsoft.Extensions.Configuration; | ||
using Microsoft.Extensions.Logging; | ||
using Microsoft.Extensions.Options; | ||
|
||
namespace Microsoft.Extensions.DependencyInjection; | ||
|
||
internal class DefaultRazorComponentsServiceOptionsConfiguration(IConfiguration configuration, ILoggerFactory loggerFactory) | ||
: IPostConfigureOptions<RazorComponentsServiceOptions> | ||
{ | ||
public IConfiguration Configuration { get; } = configuration; | ||
|
||
public void PostConfigure(string? name, RazorComponentsServiceOptions options) | ||
{ | ||
var value = Configuration[WebHostDefaults.DetailedErrorsKey]; | ||
options.DetailedErrors = string.Equals(value, "true", StringComparison.OrdinalIgnoreCase) || | ||
string.Equals(value, "1", StringComparison.OrdinalIgnoreCase); | ||
|
||
options._formMappingOptions = new FormDataMapperOptions(loggerFactory) | ||
{ | ||
MaxRecursionDepth = options.MaxFormMappingRecursionDepth, | ||
MaxErrorCount = options.MaxFormMappingErrorCount, | ||
MaxCollectionSize = options.MaxFormMappingCollectionSize, | ||
MaxKeyBufferSize = options.MaxFormMappingKeySize | ||
}; | ||
} | ||
} |
9 changes: 0 additions & 9 deletions
9
src/Components/Endpoints/src/DependencyInjection/RazorComponentsEndpointOptions.cs
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
.../Endpoints/src/DependencyInjection/RazorComponentsEndpointsDetailedErrorsConfiguration.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.