Skip to content

Merging internal commits for release/9.0 #61925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
4a6e005
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Mar 18, 2025
c15021a
Merged PR 48593: [internal/release/9.0] Update dependencies from dnce…
Mar 18, 2025
8a61cbe
Merge commit '27ea9fa74cd8f2cd164fa675f5d0f9b1c4a1cb51'
Apr 2, 2025
8e5e763
Merge commit '38f930810af5ab6a1c092ac7cfed1a6b4097a0f8'
Apr 2, 2025
5226a7f
Fix conflict
wtgodbe Apr 8, 2025
e8bad09
Merged PR 49035: [release/9.0] Merge from public
wtgodbe Apr 8, 2025
ceb1431
Merge commit 'f9aa89751c0918252a1d1c39a88b099f5d8fbf2d'
Apr 9, 2025
398176a
Merge commit '15ecdb2aeea47371374566c28ac52ea0e44e42f0'
Apr 9, 2025
ff7932a
Fix conflict
wtgodbe Apr 11, 2025
c15ce45
Merged PR 49165: [release/9/0] Merge from public
wtgodbe Apr 11, 2025
9de40de
Merged PR 49095: [internal/release/9.0] Add empty string check for re…
Apr 15, 2025
e2a5562
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Apr 16, 2025
6331c78
Update dependencies from https://dev.azure.com/dnceng/internal/_git/d…
dotnet-bot Apr 16, 2025
4b60761
Merged PR 49248: [internal/release/9.0] Update dependencies from dnce…
Apr 16, 2025
ed74665
Merged PR 49622: [internal/release/9.0] Merge from public
vseanreesermsft Apr 29, 2025
8783cb8
Merge commit 'ed74665e773dd1ebea3289c5662d71c590305932' into internal…
vseanreesermsft May 13, 2025
3d6c910
Update baseline, SDK
wtgodbe May 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions NuGet.config
Original file line number Diff line number Diff line change
@@ -4,8 +4,10 @@
<clear />
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
<!-- Begin: Package sources from dotnet-runtime -->
<add key="darc-int-dotnet-runtime-e36e4d1" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-runtime-e36e4d1a/nuget/v3/index.json" />
<!-- End: Package sources from dotnet-runtime -->
<!-- Begin: Package sources from dotnet-efcore -->
<add key="darc-int-dotnet-efcore-6765359" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-efcore-67653595/nuget/v3/index.json" />
<!-- End: Package sources from dotnet-efcore -->
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
@@ -28,8 +30,10 @@
<clear />
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
<!-- Begin: Package sources from dotnet-efcore -->
<add key="darc-int-dotnet-efcore-6765359" value="true" />
<!-- End: Package sources from dotnet-efcore -->
<!-- Begin: Package sources from dotnet-runtime -->
<add key="darc-int-dotnet-runtime-e36e4d1" value="true" />
<!-- End: Package sources from dotnet-runtime -->
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
</disabledPackageSources>
776 changes: 388 additions & 388 deletions eng/Baseline.Designer.props

Large diffs are not rendered by default.

212 changes: 106 additions & 106 deletions eng/Baseline.xml

Large diffs are not rendered by default.

320 changes: 160 additions & 160 deletions eng/Version.Details.xml

Large diffs are not rendered by default.

162 changes: 81 additions & 81 deletions eng/Versions.props

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"sdk": {
"version": "9.0.105"
"version": "9.0.106"
},
"tools": {
"dotnet": "9.0.105",
"dotnet": "9.0.106",
"runtimes": {
"dotnet/x86": [
"$(MicrosoftNETCoreBrowserDebugHostTransportVersion)"
Original file line number Diff line number Diff line change
@@ -144,6 +144,9 @@ await Assert.ThrowsAsync<ArgumentNullException>("user",
await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetTwoFactorEnabledAsync(null));
await Assert.ThrowsAsync<ArgumentNullException>("user",
async () => await store.SetTwoFactorEnabledAsync(null, true));
await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.RedeemCodeAsync(user: null, code: "fake", default));
await Assert.ThrowsAsync<ArgumentNullException>("code", async () => await store.RedeemCodeAsync(new IdentityUser("fake"), code: null, default));
await Assert.ThrowsAsync<ArgumentException>("code", async () => await store.RedeemCodeAsync(new IdentityUser("fake"), code: "", default));
await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetAccessFailedCountAsync(null));
await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetLockoutEnabledAsync(null));
await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.SetLockoutEnabledAsync(null, false));
2 changes: 1 addition & 1 deletion src/Identity/Extensions.Stores/src/UserStoreBase.cs
Original file line number Diff line number Diff line change
@@ -969,7 +969,7 @@ public virtual async Task<bool> RedeemCodeAsync(TUser user, string code, Cancell
ThrowIfDisposed();

ArgumentNullThrowHelper.ThrowIfNull(user);
ArgumentNullThrowHelper.ThrowIfNull(code);
ArgumentNullThrowHelper.ThrowIfNullOrEmpty(code);

var mergedCodes = await GetTokenAsync(user, InternalLoginProvider, RecoveryCodeTokenName, cancellationToken).ConfigureAwait(false) ?? "";
var splitCodes = mergedCodes.Split(';');
23 changes: 23 additions & 0 deletions src/Shared/ThrowHelpers/ArgumentNullThrowHelper.cs
Original file line number Diff line number Diff line change
@@ -30,6 +30,29 @@ public static void ThrowIfNull(
#endif
}

/// <summary>Throws an <see cref="ArgumentException"/> if <paramref name="argument"/> is null or empty.</summary>
/// <param name="argument">The <see cref="string"/> argument to validate as non-null and non-empty.</param>
/// <param name="paramName">The name of the parameter with which <paramref name="argument"/> corresponds.</param>
public static void ThrowIfNullOrEmpty(
#if INTERNAL_NULLABLE_ATTRIBUTES || NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER
[NotNull]
#endif
string? argument, [CallerArgumentExpression(nameof(argument))] string? paramName = null)
{
#if !NET7_0_OR_GREATER || NETSTANDARD || NETFRAMEWORK
if (argument is null)
{
Throw(paramName);
}
else if (argument.Length == 0)
{
throw new ArgumentException("Must not be null or empty", paramName);
}
#else
ArgumentException.ThrowIfNullOrEmpty(argument, paramName);
#endif
}

#if !NET7_0_OR_GREATER || NETSTANDARD || NETFRAMEWORK
#if INTERNAL_NULLABLE_ATTRIBUTES || NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER
[DoesNotReturn]