From df5b7b4f082bfbded7df8135556fcfff3899ce0d Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Sat, 29 Jun 2024 00:42:04 +0900 Subject: [PATCH] .Net: update Kernel.cs minor fix --- dotnet/src/SemanticKernel.Abstractions/Kernel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet/src/SemanticKernel.Abstractions/Kernel.cs b/dotnet/src/SemanticKernel.Abstractions/Kernel.cs index c466fb9f6485..2b9052843cc9 100644 --- a/dotnet/src/SemanticKernel.Abstractions/Kernel.cs +++ b/dotnet/src/SemanticKernel.Abstractions/Kernel.cs @@ -263,7 +263,7 @@ public IEnumerable GetAllServices() where T : class // M.E.DI doesn't support querying for a service without a key, and it also doesn't // support AnyKey currently: https://github.com/dotnet/runtime/issues/91466 // As a workaround, KernelBuilder injects a service containing the type-to-all-keys - // mapping. We can query for that service and and then use it to try to get a service. + // mapping. We can query for that service and then use it to try to get a service. if (this.Services.GetKeyedService>>(KernelServiceTypeToKeyMappings) is { } typeToKeyMappings) { if (typeToKeyMappings.TryGetValue(typeof(T), out HashSet? keys))