protected void RegisterInstance(Type serviceType, object instance) { var registryInstance = new RegistryInstance(serviceType, instance); registryInstance.Singleton(); instances.Add(registryInstance); }