From 90d8a82bc078f92ae967d36ce6b7bdeaf4117fb0 Mon Sep 17 00:00:00 2001 From: Norbert Truchsess Date: Tue, 17 Sep 2024 15:31:04 +0200 Subject: [PATCH] update framework version --- .../BusinessLogic/UserBusinessLogic.cs | 2 +- .../AsyncAggregateExtensions.cs | 28 +++++++++---------- .../Framework.Async/Directory.Build.props | 2 +- .../Framework.Cors/Directory.Build.props | 2 +- .../Framework.DBAccess/Directory.Build.props | 2 +- .../Directory.Build.props | 2 +- .../Directory.Build.props | 2 +- .../Directory.Build.props | 2 +- .../Directory.Build.props | 2 +- .../Directory.Build.props | 2 +- .../Directory.Build.props | 2 +- .../Framework.IO/Directory.Build.props | 2 +- .../Framework.Linq/Directory.Build.props | 2 +- .../Framework.Logging/Directory.Build.props | 2 +- .../Framework.Models/Directory.Build.props | 2 +- .../Framework.Seeding/Directory.Build.props | 2 +- .../Framework.Swagger/Directory.Build.props | 2 +- .../Framework.Token/Directory.Build.props | 2 +- .../Framework.Web/Directory.Build.props | 2 +- .../BusinessLogic/SeedDataHandler.cs | 2 +- 20 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/administration/Administration.Service/BusinessLogic/UserBusinessLogic.cs b/src/administration/Administration.Service/BusinessLogic/UserBusinessLogic.cs index 633bf5a974..baf79f70eb 100644 --- a/src/administration/Administration.Service/BusinessLogic/UserBusinessLogic.cs +++ b/src/administration/Administration.Service/BusinessLogic/UserBusinessLogic.cs @@ -278,7 +278,7 @@ public async Task AddOwnCompanyUsersBusinessPartnerNumbe var iamUserId = await provisioningManager.GetUserByUserName(userId.ToString()).ConfigureAwait(ConfigureAwaitOptions.None) ?? throw new ConflictException($"user {userId} not found in keycloak"); - var (successfulBpns, unsuccessfulBpns) = await businessPartnerNumbers.AggregateAsync( + var (successfulBpns, unsuccessfulBpns) = await businessPartnerNumbers.AggregateAwait( (SuccessfulBpns: ImmutableList.CreateBuilder(), UnsuccessfulBpns: ImmutableList.CreateBuilder()), async (acc, bpn) => { diff --git a/src/framework/Framework.Async/AsyncAggregateExtensions.cs b/src/framework/Framework.Async/AsyncAggregateExtensions.cs index 2670e48dbd..fc5214c84b 100644 --- a/src/framework/Framework.Async/AsyncAggregateExtensions.cs +++ b/src/framework/Framework.Async/AsyncAggregateExtensions.cs @@ -21,43 +21,43 @@ namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Async; public static class AsyncAggregateExtensions { - public static Task AggregateAsync(this IEnumerable source, TAccumulate seed, Func> accumulate, CancellationToken cancellationToken = default) + public static Task AggregateAwait(this IEnumerable source, TAccumulate seed, Func> accumulate, CancellationToken cancellationToken = default) { using var enumerator = source.GetEnumerator(); - return AggregateAsync(enumerator, seed, accumulate, cancellationToken); + return AggregateAwait(enumerator, seed, accumulate, cancellationToken); } - public static Task AggregateAsync(this IEnumerable source, TAccumulate seed, Func> accumulate, CancellationToken cancellationToken = default) + public static Task AggregateAwait(this IEnumerable source, TAccumulate seed, Func> accumulate, CancellationToken cancellationToken = default) { using var enumerator = source.GetEnumerator(); - return AggregateAsync(enumerator, seed, accumulate, cancellationToken); + return AggregateAwait(enumerator, seed, accumulate, cancellationToken); } - public static async Task AggregateAsync(this IEnumerable source, TAccumulate seed, Func> accumulate, Func result, CancellationToken cancellationToken = default) => - result(await AggregateAsync(source, seed, accumulate, cancellationToken)); + public static async Task AggregateAwait(this IEnumerable source, TAccumulate seed, Func> accumulate, Func result, CancellationToken cancellationToken = default) => + result(await AggregateAwait(source, seed, accumulate, cancellationToken)); - public static async Task AggregateAsync(this IEnumerable source, TAccumulate seed, Func> accumulate, Func result, CancellationToken cancellationToken = default) => - result(await AggregateAsync(source, seed, accumulate, cancellationToken)); + public static async Task AggregateAwait(this IEnumerable source, TAccumulate seed, Func> accumulate, Func result, CancellationToken cancellationToken = default) => + result(await AggregateAwait(source, seed, accumulate, cancellationToken)); - public static Task AggregateAsync(this IEnumerable source, Func> accumulate, CancellationToken cancellationToken = default) + public static Task AggregateAwait(this IEnumerable source, Func> accumulate, CancellationToken cancellationToken = default) { using var enumerator = source.GetEnumerator(); if (!enumerator.MoveNext()) throw new InvalidOperationException("source must not be empty"); - return AggregateAsync(enumerator, enumerator.Current, accumulate, cancellationToken); + return AggregateAwait(enumerator, enumerator.Current, accumulate, cancellationToken); } - public static Task AggregateAsync(this IEnumerable source, Func> accumulate, CancellationToken cancellationToken = default) + public static Task AggregateAwait(this IEnumerable source, Func> accumulate, CancellationToken cancellationToken = default) { using var enumerator = source.GetEnumerator(); if (!enumerator.MoveNext()) throw new InvalidOperationException("source must not be empty"); - return AggregateAsync(enumerator, enumerator.Current, accumulate, cancellationToken); + return AggregateAwait(enumerator, enumerator.Current, accumulate, cancellationToken); } - private static async Task AggregateAsync(IEnumerator enumerator, TAccumulate seed, Func> accumulate, CancellationToken cancellationToken) + private static async Task AggregateAwait(IEnumerator enumerator, TAccumulate seed, Func> accumulate, CancellationToken cancellationToken) { var accumulator = seed; while (enumerator.MoveNext()) @@ -68,7 +68,7 @@ private static async Task AggregateAsync(IEnu return accumulator; } - private static async Task AggregateAsync(IEnumerator enumerator, TAccumulate seed, Func> accumulate, CancellationToken cancellationToken) + private static async Task AggregateAwait(IEnumerator enumerator, TAccumulate seed, Func> accumulate, CancellationToken cancellationToken) { var accumulator = seed; while (enumerator.MoveNext()) diff --git a/src/framework/Framework.Async/Directory.Build.props b/src/framework/Framework.Async/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.Async/Directory.Build.props +++ b/src/framework/Framework.Async/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/framework/Framework.Cors/Directory.Build.props b/src/framework/Framework.Cors/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.Cors/Directory.Build.props +++ b/src/framework/Framework.Cors/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/framework/Framework.DBAccess/Directory.Build.props b/src/framework/Framework.DBAccess/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.DBAccess/Directory.Build.props +++ b/src/framework/Framework.DBAccess/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/framework/Framework.DateTimeProvider/Directory.Build.props b/src/framework/Framework.DateTimeProvider/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.DateTimeProvider/Directory.Build.props +++ b/src/framework/Framework.DateTimeProvider/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/framework/Framework.DependencyInjection/Directory.Build.props b/src/framework/Framework.DependencyInjection/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.DependencyInjection/Directory.Build.props +++ b/src/framework/Framework.DependencyInjection/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/framework/Framework.ErrorHandling.Controller/Directory.Build.props b/src/framework/Framework.ErrorHandling.Controller/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.ErrorHandling.Controller/Directory.Build.props +++ b/src/framework/Framework.ErrorHandling.Controller/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/framework/Framework.ErrorHandling.Web/Directory.Build.props b/src/framework/Framework.ErrorHandling.Web/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.ErrorHandling.Web/Directory.Build.props +++ b/src/framework/Framework.ErrorHandling.Web/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/framework/Framework.ErrorHandling/Directory.Build.props b/src/framework/Framework.ErrorHandling/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.ErrorHandling/Directory.Build.props +++ b/src/framework/Framework.ErrorHandling/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/framework/Framework.HttpClientExtensions/Directory.Build.props b/src/framework/Framework.HttpClientExtensions/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.HttpClientExtensions/Directory.Build.props +++ b/src/framework/Framework.HttpClientExtensions/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/framework/Framework.IO/Directory.Build.props b/src/framework/Framework.IO/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.IO/Directory.Build.props +++ b/src/framework/Framework.IO/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/framework/Framework.Linq/Directory.Build.props b/src/framework/Framework.Linq/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.Linq/Directory.Build.props +++ b/src/framework/Framework.Linq/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/framework/Framework.Logging/Directory.Build.props b/src/framework/Framework.Logging/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.Logging/Directory.Build.props +++ b/src/framework/Framework.Logging/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/framework/Framework.Models/Directory.Build.props b/src/framework/Framework.Models/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.Models/Directory.Build.props +++ b/src/framework/Framework.Models/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/framework/Framework.Seeding/Directory.Build.props b/src/framework/Framework.Seeding/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.Seeding/Directory.Build.props +++ b/src/framework/Framework.Seeding/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/framework/Framework.Swagger/Directory.Build.props b/src/framework/Framework.Swagger/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.Swagger/Directory.Build.props +++ b/src/framework/Framework.Swagger/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/framework/Framework.Token/Directory.Build.props b/src/framework/Framework.Token/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.Token/Directory.Build.props +++ b/src/framework/Framework.Token/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/framework/Framework.Web/Directory.Build.props b/src/framework/Framework.Web/Directory.Build.props index e909f97822..e23d9cab37 100644 --- a/src/framework/Framework.Web/Directory.Build.props +++ b/src/framework/Framework.Web/Directory.Build.props @@ -19,7 +19,7 @@ - 2.8.0 + 2.9.0 diff --git a/src/keycloak/Keycloak.Seeding/BusinessLogic/SeedDataHandler.cs b/src/keycloak/Keycloak.Seeding/BusinessLogic/SeedDataHandler.cs index 1e38a11ca2..770bba6112 100644 --- a/src/keycloak/Keycloak.Seeding/BusinessLogic/SeedDataHandler.cs +++ b/src/keycloak/Keycloak.Seeding/BusinessLogic/SeedDataHandler.cs @@ -41,7 +41,7 @@ public class SeedDataHandler : ISeedDataHandler public async Task Import(KeycloakRealmSettings realmSettings, CancellationToken cancellationToken) { _keycloakRealm = (await realmSettings.DataPathes - .AggregateAsync( + .AggregateAwait( new KeycloakRealm(), async (importRealm, path) => importRealm.Merge(await ReadJsonRealm(path, realmSettings.Realm, cancellationToken).ConfigureAwait(ConfigureAwaitOptions.None)), cancellationToken).ConfigureAwait(ConfigureAwaitOptions.None))