ScanAndRegisterTypes() public method

Scans the and register types.
public ScanAndRegisterTypes ( IObjectDefinitionRegistry registry ) : void
registry IObjectDefinitionRegistry The registry within which to register the types.
return void
        /// <summary>
        /// Scans for types using the provided scanner.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <param name="scanner">The scanner.</param>
        public static void Scan(this GenericApplicationContext context, AssemblyObjectDefinitionScanner scanner)
        {
            var registry = context.ObjectFactory as IObjectDefinitionRegistry;
            scanner.ScanAndRegisterTypes(registry);

            AttributeConfigUtils.RegisterAttributeConfigProcessors(registry);
        }
 /// <summary>
 /// Scans for types using the provided scanner.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <param name="scanner">The scanner.</param>
 public static void Scan(this AbstractApplicationContext context, AssemblyObjectDefinitionScanner scanner)
 {
     scanner.ScanAndRegisterTypes((IObjectDefinitionRegistry)context.ObjectFactory);
 }