public Component Register() { foreach (Type serviceType in _services) { if (_registration == null) { _registration = new ComponentRegistration(serviceType); _registration.Named(_name).ImplementedBy(_impl) .DependsOn(_dependencies); RegisterExtensions(_extensions); } else { _registration.Forward(serviceType); } } if (_lifestyle.HasValue) { _registration.LifeStyle.Is(_lifestyle.Value); } kernel.Register(_registration); _dependencies.Clear(); return(this); }
private void ConfigureAspect(ComponentRegistration componentRegistration) { componentRegistration.Forward <IInterceptor>(); componentRegistration.ExtendedProperties(genericImplementationMatchingStrategyProperty); }