src/Topelab.Core.Resolver.Unity/Resolver.cs
/// <summary>
/// Resolve a named instance of type <typeparamref name="T"/> using constructor with param types <typeparamref name="T1"/>, 
/// <typeparamref name="T2"/>, <typeparamref name="T3"/> and <typeparamref name="T4"/>
/// </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>
/// <typeparam name="T3">Type for constructor param 3</typeparam>
/// <typeparam name="T4">Type for constructor param 4</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>
/// <param name="arg3">Param 3 for constructor</param>
/// <param name="arg4">Param 4 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, T3, T4>(string key, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
        {
            var parameters = constructorsByKey[key].GetParameters().Select(p => p.Name).ToArray();
            return container.Resolve<T>(key,
                                        new ParameterOverride(typeof(T1), parameters[0], arg1),
                                        new ParameterOverride(typeof(T2), parameters[1], arg2),
                                        new ParameterOverride(typeof(T3), parameters[2], arg3),
                                        new ParameterOverride(typeof(T4), parameters[3], arg4)
                                        );
        }
public T Get < T , T1 , T2 , T3 , T4 > ( string key , T1 arg1 , T2 arg2 , T3 arg3 , T4 arg4 ) { var parameters = constructorsByKey [ key ] . GetParameters ( ) . Select ( p => p . Name ) . ToArray ( ) ; return container . Resolve < T > ( key , new ParameterOverride ( typeof ( T1 ) , parameters [ 0 ] , arg1 ) , new ParameterOverride ( typeof ( T2 ) , parameters [ 1 ] , arg2 ) , new ParameterOverride ( typeof ( T3 ) , parameters [ 2 ] , arg3 ) , new ParameterOverride ( typeof ( T4 ) , parameters [ 3 ] , arg4 ) ) ; }
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
arg3
T3
Param 3 for constructor
Param 3 for constructor
arg4
T4
Param 4 for constructor
Param 4 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
typeparam
Type for constructor param 3
Type for constructor param 3
typeparam
Type for constructor param 4
Type for constructor param 4