From 5ffc1b79377f92df180ec0cd40ea9e81a8fdb453 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 1 Apr 2026 02:01:54 +0000 Subject: [PATCH] fix: remove unused keyedService variable in AutofacRegistration.cs Agent-Logs-Url: https://github.com/abpframework/abp/sessions/c39209b8-1bd6-4fae-b77b-ca167d8098b9 Co-authored-by: maliming <6908465+maliming@users.noreply.github.com> --- .../Extensions/DependencyInjection/AutofacRegistration.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/framework/src/Volo.Abp.Autofac/Autofac/Extensions/DependencyInjection/AutofacRegistration.cs b/framework/src/Volo.Abp.Autofac/Autofac/Extensions/DependencyInjection/AutofacRegistration.cs index 01386f3835..b92182db92 100644 --- a/framework/src/Volo.Abp.Autofac/Autofac/Extensions/DependencyInjection/AutofacRegistration.cs +++ b/framework/src/Volo.Abp.Autofac/Autofac/Extensions/DependencyInjection/AutofacRegistration.cs @@ -337,7 +337,6 @@ public static class AutofacRegistration var serviceProvider = context.Resolve(); - var keyedService = (Autofac.Core.KeyedService)requestContext.Service; var key = requestContext.Parameters.KeyedServiceKey(); return descriptor.KeyedImplementationFactory(serviceProvider, key);