src/Topelab.Core.Resolver.Unity/ResolverFactory.cs
/// <summary>
/// Creates an IResolver based on the specified resolve info collection.
/// </summary>
/// <param name="resolveInfoCollection">The resolve info collection.</param>
Creates an IResolver based on the specified resolve info collection.
Creates an IResolver based on the specified resolve info collection .
public static IResolver Create(ResolveInfoCollection resolveInfoCollection)
        {
            Dictionary<string, ConstructorInfo> constructorsByKey = new();
            UnityContainer container = new();
            if (resolveInfoCollection != null)
            {
                container.Register(resolveInfoCollection, constructorsByKey);
            }
            resolver = new(container, constructorsByKey);
            container.RegisterInstance<IResolver>(resolver);
            return resolver;
        }
public static IResolver Create ( ResolveInfoCollection resolveInfoCollection ) { Dictionary < string , ConstructorInfo > constructorsByKey = new ( ) ; UnityContainer container = new ( ) ; if ( resolveInfoCollection != null ) { container . Register ( resolveInfoCollection , constructorsByKey ) ; } resolver = new ( container , constructorsByKey ) ; container . RegisterInstance < IResolver > ( resolver ) ; return resolver ; }
Creates an IResolver based on the specified resolve info collection.
Creates an IResolver based on the specified resolve info collection .
resolveInfoCollection
ResolveInfoCollection
The resolve info collection.
The resolve info collection .