From 5046adf64293f9cbe8985c396495078d4874ae35 Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Sun, 3 Mar 2024 21:01:59 +0330 Subject: [PATCH] update ResolveContentAllLanguage(IEnumerable items) --- ...services.ContentsMicroservice.Clients.csproj | 2 +- .../Helpers/ContentLanguageHelper.cs | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/CSharp/EasyMicroservices.ContentsMicroservice.Clients/EasyMicroservices.ContentsMicroservice.Clients.csproj b/src/CSharp/EasyMicroservices.ContentsMicroservice.Clients/EasyMicroservices.ContentsMicroservice.Clients.csproj index 72c0487..d6c4a4c 100644 --- a/src/CSharp/EasyMicroservices.ContentsMicroservice.Clients/EasyMicroservices.ContentsMicroservice.Clients.csproj +++ b/src/CSharp/EasyMicroservices.ContentsMicroservice.Clients/EasyMicroservices.ContentsMicroservice.Clients.csproj @@ -5,7 +5,7 @@ AnyCPU;x64;x86 EasyMicroservices true - 0.0.0.23 + 0.0.0.24 client generated code. EasyMicroservices@gmail.com microservice,Content,Contents,client diff --git a/src/CSharp/EasyMicroservices.ContentsMicroservice.Clients/Helpers/ContentLanguageHelper.cs b/src/CSharp/EasyMicroservices.ContentsMicroservice.Clients/Helpers/ContentLanguageHelper.cs index b521fd5..5ea7c80 100644 --- a/src/CSharp/EasyMicroservices.ContentsMicroservice.Clients/Helpers/ContentLanguageHelper.cs +++ b/src/CSharp/EasyMicroservices.ContentsMicroservice.Clients/Helpers/ContentLanguageHelper.cs @@ -34,6 +34,23 @@ string GetUniqueIdentity(object contract) return uniqueIdentity.GetValue(contract) as string; } + /// + /// + /// + /// + /// + public async Task ResolveContentAllLanguage(IEnumerable items) + { + if (items == null) + return; + List tasks = new List(); + foreach (var item in items) + { + tasks.Add(ResolveContentAllLanguage(item)); + } + await Task.WhenAll(tasks); + } + /// /// ///