Core/CafeLib.Core.IoC/ServiceRegistry.cs
/// <summary>
/// Register service as a singleton.
/// </summary>
/// <typeparam name="TService">service type</typeparam>
/// <returns>service registry</returns>
Register service as a singleton.
Register service as a singleton .
public IServiceRegistry AddSingleton<TService>() where TService : class
        {
            _serviceContainer.RegisterSingleton<TService>();
            return this;
        }
public IServiceRegistry AddSingleton < TService > ( ) where TService : class { _serviceContainer . RegisterSingleton < TService > ( ) ; return this ; }
Register service as a singleton.
Register service as a singleton .
None
typeparam
None