Answers for "dependency injection .net core 3"

C#
0

register all services microsoft .net core dependency injection container

service.RegisterAssemblyPublicNonGenericClasses(… your assembly ref goes here …)
.Where(x => x.Name.EndsWith(“Service”))  //optional
.IgnoreThisInterface<IMyInterface>()     //optional
.AsPublicImplementedInterfaces(ServiceLifetime.Scoped);
Posted by: Guest on November-24-2020

Code answers related to "dependency injection .net core 3"

C# Answers by Framework

Browse Popular Code Answers by Language