JasperFx / lamar

Fast Inversion of Control Tool and Successor to StructureMap
https://jasperfx.github.io/lamar
MIT License
563 stars 118 forks source link

Eliminate UseLamar() overloads that depend on a specific ServiceRegistry type #329

Closed jeremydmiller closed 2 years ago

jeremydmiller commented 2 years ago

Yes to UseLamar(Action), no to any other overload that takes a pre-built ServiceRegistry or ServiceRegistry subclass. Users will have to use IncludeRegistry() instead. This is to protect users from ASP.NEt Core quirks where common ASP.Net Core Add*****() methods depend on prior service registrations to work correctly.