<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.4" />

ObjectFactory<T>

public sealed delegate ObjectFactory<T> : MulticastDelegate
Returns the result of CreateFactory<T>, which is a delegate that specifies a factory method to call to instantiate an instance of type T.
using System; using System.Runtime.CompilerServices; namespace Microsoft.Extensions.DependencyInjection { public delegate T ObjectFactory<[System.Runtime.CompilerServices.Nullable(2)] T> (IServiceProvider serviceProvider, [System.Runtime.CompilerServices.Nullable(2)] object[] arguments); }