/// <summary> /// Registers the service on the specified container. /// </summary> /// <typeparam name="TService">The type of the service.</typeparam> /// <param name="container">The container.</param> /// <param name="instance">The instance.</param> /// <returns>The container.</returns> public static SimpleContainer Instance <TService>(this SimpleContainer container, TService instance) { container.RegisterInstance(typeof(TService), null, instance); return(container); }