public static void RegisterInstance <I, T>(string name, T instance, ObjectLifeSpans lifeSpan) where I : class where T : class, I { resolver.RegisterInstance <I, T>(name, instance, lifeSpan); }