diff --git a/VContainer/Assets/VContainer/Runtime/ContainerBuilderExtensions.cs b/VContainer/Assets/VContainer/Runtime/ContainerBuilderExtensions.cs index 0d062dee..88781ed2 100644 --- a/VContainer/Assets/VContainer/Runtime/ContainerBuilderExtensions.cs +++ b/VContainer/Assets/VContainer/Runtime/ContainerBuilderExtensions.cs @@ -60,7 +60,7 @@ public static RegistrationBuilder Register( this IContainerBuilder builder, Func implementationConfiguration, Lifetime lifetime) - => builder.Register(new FuncRegistrationBuilder(implementationConfiguration, typeof(TInterface), lifetime)); + => builder.Register(new FuncRegistrationBuilder(container => implementationConfiguration(container), typeof(TInterface), lifetime)); [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RegistrationBuilder RegisterInstance(