Exemple #1
0
 internal override void AddControlledRegistrations(Type serviceType,
                                                   ContainerControlledItem[] registrations, bool append)
 {
     if (append)
     {
         throw new NotSupportedException(
                   StringResources.AppendingRegistrationsToContainerUncontrolledCollectionsIsNotSupported(
                       serviceType));
     }
     else
     {
         throw new NotSupportedException(
                   StringResources.MixingRegistrationsWithControlledAndUncontrolledIsNotSupported(serviceType,
                                                                                                  controlled: true));
     }
 }