Core/CafeLib.Core.IoC/ServiceRegistry.cs
/// <summary>
/// Register service of scoped lifetime.
/// </summary>
/// <typeparam name="TService">service type</typeparam>
/// <typeparam name="TImpl">service implementation type</typeparam>
/// <returns>service registry</returns>
Register service of scoped lifetime.
Register service of scoped lifetime .
public IServiceRegistry AddScoped<TService, TImpl>() where TService : class where TImpl : class, TService
        {
            _serviceContainer.RegisterScoped<TService, TImpl>();
            return this;
        }
public IServiceRegistry AddScoped < TService , TImpl > ( ) where TService : class where TImpl : class , TService { _serviceContainer . RegisterScoped < TService , TImpl > ( ) ; return this ; }
Register service of scoped lifetime.
Register service of scoped lifetime .
None
typeparam
None
typeparam
service implementation type
service implementation type