addscoped example
Example: register all services microsoft .net core dependency injection container
service.RegisterAssemblyPublicNonGenericClasses(… your assembly ref goes here …)
.Where(x => x.Name.EndsWith(“Service”)) //optional
.IgnoreThisInterface() //optional
.AsPublicImplementedInterfaces(ServiceLifetime.Scoped);