Esempio n. 1
0
 public ContainerServices(IConcurrentDictionaryFactory concurrentDictionaryFactory,
                          IRegistrationCollectionFactory registrationCollectionFactory,
                          IDefaultInstantiationInfoSelector defaultInstantiationInfoSelector,
                          IReadOnlyList <Type> ignoredAbstractionTypes,
                          IContainerScopeFactory containerScopeFactory,
                          IResolveDelegateFactory resolveDelegateFactory,
                          IAutomaticRegistrationFactory automaticRegistrationFactory,
                          IResolveContextFactory resolveContextFactory,
                          IResolveInfoAlgorithm resolveInfoAlgorithm,
                          Action <DependencyInjectionContainer> setupContainer = null)
 {
     ConcurrentDictionaryFactory      = concurrentDictionaryFactory.MustNotBeNull(nameof(concurrentDictionaryFactory));
     RegistrationCollectionFactory    = registrationCollectionFactory.MustNotBeNull(nameof(registrationCollectionFactory));
     DefaultInstantiationInfoSelector = defaultInstantiationInfoSelector.MustNotBeNull(nameof(defaultInstantiationInfoSelector));
     IgnoredAbstractionTypes          = ignoredAbstractionTypes.MustNotBeNull(nameof(ignoredAbstractionTypes));
     ContainerScopeFactory            = containerScopeFactory.MustNotBeNull(nameof(containerScopeFactory));
     ResolveDelegateFactory           = resolveDelegateFactory.MustNotBeNull(nameof(resolveDelegateFactory));
     AutomaticRegistrationFactory     = automaticRegistrationFactory.MustNotBeNull(nameof(automaticRegistrationFactory));
     ResolveContextFactory            = resolveContextFactory.MustNotBeNull(nameof(resolveContextFactory));
     ResolveInfoAlgorithm             = resolveInfoAlgorithm.MustNotBeNull(nameof(resolveInfoAlgorithm));
     SetupContainer = setupContainer;
 }
 protected BaseCreateInstanceOptions(Type targetType, IReadOnlyList <Type> ignoredAbstractionTypes, IDefaultInstantiationInfoSelector defaultInstantiationInfoSelector) : base(targetType, ignoredAbstractionTypes)
 {
     DefaultInstantiationInfoSelector = defaultInstantiationInfoSelector.MustNotBeNull(nameof(defaultInstantiationInfoSelector));
 }