Exemple #1
0
        private IServiceRegistration RegisterConcreteGenericType(IServiceRegistration serviceRegistration, Type resolveType, Type genericType)
        {
            var newRegistration = serviceRegistration.Clone(genericType);

            newRegistration.RegistrationContext.Name = null;
            this.serviceRegistrator.Register(newRegistration, resolveType, false);
            return(newRegistration);
        }