山东雷驰
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.4 KiB

3 months ago
using Kean.Application.Query.Implements;
using Kean.Application.Query.Interfaces;
using Microsoft.Extensions.DependencyInjection;
namespace Kean.Application.Query
{
/// <summary>
/// 依赖注入
/// </summary>
public sealed class DependencyInjection
{
/// <summary>
/// 初始化 Kean.Application.Query.DependencyInjection 类的新实例
/// </summary>
/// <param name="services">服务描述符</param>
public DependencyInjection(IServiceCollection services)
{
// AutoMapper
services.AddAutoMapper(typeof(AutoMapper));
// Services
services.AddScoped<IAppService, AppService>();
services.AddScoped<IBasicService, BasicService>();
services.AddScoped<IIdentityService, IdentityService>();
services.AddScoped<IMessageService, MessageService>();
services.AddScoped<IWarehouseService, WarehouseService>();
services.AddScoped<IMaterialService, MaterialService>();
services.AddScoped<IOrderService, OrderService>();
services.AddScoped<IStockService, StockService>();
services.AddScoped<ITaskService, TaskService>();
services.AddScoped<IWcsService, WcsService>();
services.AddScoped<IRecordService, RecordService>();
services.AddScoped<IStatisticsService, StatisticsService>();
}
}
}