Posted By Brian Dukes on 10/17/2025 3:15 PM Rather than using the RoleController constructor directly, add an IRoleController parameter to your constructor, and it'll be supplied via DI. If there's some reason you can't do that, or a similar situation that's not a constructor, you can add an IHostSettings parameter to your constructor, and then pass it through to the method that needs it.
The static class scenario. Thanks
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.