/// <summary> /// Registers the specified object and service as Singleton using the default constructor, on the specified container. /// </summary> /// <typeparam name="TService">The type of the service.</typeparam> /// <typeparam name="TImplementation">The type of the implementation.</typeparam> /// <param name="container">The container.</param> /// <returns>The container.</returns> public static SimpleContainer SingletonWithDefaultCtor <TService, TImplementation>( this SimpleContainer container) where TImplementation : TService { container.RegisteSingletonWithDefaultCtor(typeof(TService), null, typeof(TImplementation)); return(container); }
/// <summary> /// Registers the specified object as Singleton using the default constructor, on the specified container. /// </summary> /// <typeparam name="TImplementation">The type of the implementation.</typeparam> /// <param name="container">The container.</param> /// <returns>The container.</returns> public static SimpleContainer SingletonWithDefaultCtor <TImplementation>(this SimpleContainer container) { container.RegisteSingletonWithDefaultCtor(typeof(TImplementation), null, typeof(TImplementation)); return(container); }