src/Topelab.Core.Resolver.Autofac/Resolver.cs
/// <summary>
/// Resolve a named instance of type <typeparamref name="T"/> using constructor with param types <typeparamref name="T1"/> and 
/// <typeparamref name="T2"/>
/// </summary>
/// <typeparam name="T">Type to resolve</typeparam>
/// <typeparam name="T1">Type for constructor param 1</typeparam>
/// <typeparam name="T2">Type for constructor param 2</typeparam>
/// <param name="key">Key name to resolve</param>
/// <param name="arg1">Param 1 for constructor</param>
/// <param name="arg2">Param 2 for constructor</param>
Resolve a named instance of type  using constructor with param types  and
Resolve a named instance of type using constructor with param types and
public T Get<T, T1, T2>(string key, T1 arg1, T2 arg2)
        {
            var parameters = constructorsByKey[key].GetParameters().Select(p => p.Name).ToArray();
            using var scope = container.BeginLifetimeScope();
            return scope.ResolveNamed<T>(key,
                                        new NamedParameter(parameters[0], arg1),
                                        new NamedParameter(parameters[1], arg2)
                                        );
        }
public T Get < T , T1 , T2 > ( string key , T1 arg1 , T2 arg2 ) { var parameters = constructorsByKey [ key ] . GetParameters ( ) . Select ( p => p . Name ) . ToArray ( ) ; using var scope = container . BeginLifetimeScope ( ) ; return scope . ResolveNamed < T > ( key , new NamedParameter ( parameters [ 0 ] , arg1 ) , new NamedParameter ( parameters [ 1 ] , arg2 ) ) ; }
Resolve a named instance of type  using constructor with param types  and
Resolve a named instance of type using constructor with param types and
key
string
Key name to resolve
Key name to resolve
arg1
T1
Param 1 for constructor
Param 1 for constructor
arg2
T2
Param 2 for constructor
Param 2 for constructor
typeparam
Type to resolve
Type to resolve
typeparam
Type for constructor param 1
Type for constructor param 1
typeparam
Type for constructor param 2
Type for constructor param 2