src/Topelab.Core.Resolver.Autofac/Resolver.cs
/// <summary>
/// Resolve a named instance of type <typeparamref name="T"/>
/// </summary>
/// <typeparam name="T">Type to resolve</typeparam>
/// <param name="key">Key name to resolve</param>
Resolve a named instance of type
Resolve a named instance of type
public T Get<T>(string key)
        {
            using var scope = container.BeginLifetimeScope();
            return scope.ResolveNamed<T>(key);
        }
public T Get < T > ( string key ) { using var scope = container . BeginLifetimeScope ( ) ; return scope . ResolveNamed < T > ( key ) ; }
Resolve a named instance of type
Resolve a named instance of type
key
string
Key name to resolve
Key name to resolve
typeparam
Type to resolve
Type to resolve