32 lines
967 B
C#
32 lines
967 B
C#
|
|
using OnlineSalesAutoCrop.CoreAPI.Services.Contracts.Setups;
|
|||
|
|
using OnlineSalesAutoCrop.CoreAPI.Services.Contracts.Systems;
|
|||
|
|
using OnlineSalesAutoCrop.CoreAPI.Services.Services.Setups;
|
|||
|
|
using OnlineSalesAutoCrop.CoreAPI.Services.Services.Systems;
|
|||
|
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
|
|
|||
|
|
namespace OnlineSalesAutoCrop.CoreAPI.Configuration.DI
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
///
|
|||
|
|
/// </summary>
|
|||
|
|
public static class ServiceCollectionExtensions
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
///
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="services"></param>
|
|||
|
|
public static void ConfigureBusinessServices(this IServiceCollection services)
|
|||
|
|
{
|
|||
|
|
if (services == null)
|
|||
|
|
return;
|
|||
|
|
|
|||
|
|
services.AddSingleton<IEaseCache, EaseCache>();
|
|||
|
|
services.AddTransient<IUserService, UserService>();
|
|||
|
|
services.AddTransient<IParamTypeService, ParamTypeService>();
|
|||
|
|
services.AddTransient<IThisSystemService, ThisSystemService>();
|
|||
|
|
services.AddTransient<IAuthModulesService, AuthModulesService>();
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|