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.
23 lines
663 B
23 lines
663 B
3 months ago
|
using Microsoft.Extensions.DependencyInjection;
|
||
|
|
||
|
namespace Kean.Infrastructure.Configuration
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 依赖注入
|
||
|
/// </summary>
|
||
|
public sealed class DependencyInjection
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 初始化 Kean.Infrastructure.Configuration.DependencyInjection 类的新实例
|
||
|
/// </summary>
|
||
|
/// <param name="services">服务描述符</param>
|
||
|
public DependencyInjection(IServiceCollection services)
|
||
|
{
|
||
|
services.AddAutoMapper(typeof(AutoMapper));
|
||
|
|
||
|
services.AddSingleton<BarcodeInterpreter>();
|
||
|
services.AddSingleton<BarcodeValidator>();
|
||
|
}
|
||
|
}
|
||
|
}
|