I am using Wolverine as my framework of choice. Wolverine comes with Lamar as IoC Container. I have split my container registrations into ServiceRegistries. Now I need to access IConfiguration instance in those registries, but can't find a way to get it.
How to get the IConfiguration instance in ServiceRegistry subclasses?
Thanks
You can pass the
IConfigurationfromProgram.csto yourServiceRegistrylike this:Lets say you have your
ServiceRegistry:Then you pass
IConfigurationfromProgram.cslike this:UseLamar()is fromLamar.Microsoft.DependencyInjectionNuGet package.