ASP.Net Core内置依赖注入功能是否支持服务的自动注册?我不想像这样手动regester他们:
services.Add(new ServiceDescriptor(typeof(IUserService), new UserService(new AtmDbContext())));
c# dependency-injection asp.net-core-mvc asp.net-core
asp.net-core ×1
asp.net-core-mvc ×1
c# ×1
dependency-injection ×1