📅  最后修改于: 2022-03-11 14:49:00.810000             🧑  作者: Mango
service.RegisterAssemblyPublicNonGenericClasses(… your assembly ref goes here …)
.Where(x => x.Name.EndsWith(“Service”)) //optional
.IgnoreThisInterface() //optional
.AsPublicImplementedInterfaces(ServiceLifetime.Scoped);