public static void AddScope <TInterface, TImplementation>(this IContainerConfigurator container) where TImplementation : class, TInterface { container.AddScope(typeof(TInterface), typeof(TImplementation)); }