public void Reset()
 {
     lock (_lock)
     {
         _bootstrapServiceLocator = DefaultServiceLocator.Create();
         _registrations.Clear();
     }
 }
        public IServiceLocator GetServiceLocator(ReadOnlyCollection <ServiceConfigurationEntry> serviceConfigurationEntries)
        {
            ArgumentUtility.CheckNotNull("serviceConfigurationEntries", serviceConfigurationEntries);

            var defaultServiceLocator = DefaultServiceLocator.Create();

            foreach (var serviceConfigurationEntry in serviceConfigurationEntries)
            {
                defaultServiceLocator.Register(serviceConfigurationEntry);
            }

            return(defaultServiceLocator);
        }