Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AddModule(s)Async should be explicit about IServiceProvider
In f19730e, AddModule(s)Async was changed so that the IServiceProvider was optional, both at compile time and runtime. This had the side effect of meaning that there was no longer a compile-time hint that users would need to pass an IServiceProvider to AddModulesAsync. I assumed this would not be an issue - users would recognize the runtime exception here and self correct - but activity in our Discord support channel would indicate otherwise. We now require the user to explicitly opt-out of dependency injection - they are still free to pass null in place of an IServiceProvider if they do not intend to use one, and the library will handle this at runtime.
- Loading branch information