internal ConventionalRegistrationContext(
     Assembly assembly,
     IocManager iocManager,
     ConventionalRegistrationConfig config
     )
 {
     Assembly   = assembly;
     IocManager = iocManager;
     Config     = config;
 }
示例#2
0
        public void RegisterAssemblyByConvention(Assembly assembly, ConventionalRegistrationConfig config)
        {
            var context = new ConventionalRegistrationContext(assembly, this, config);

            foreach (var registrar in _conventionalRegistrars)
            {
                registrar.RegisterAssembly(context);
            }

            if (config.InstallInstallers)
            {
                IocContainer.Install(FromAssembly.Instance(assembly));
            }
        }