Skip to content

Creating helper class with injected IModalService #372

Answered by chrissainty
aterbo asked this question in Q&A
Discussion options

You must be logged in to vote

There shouldn't be any issues as the IModalService instance that is cascaded is injected by DI initially. So when you request a IModalService instance into your helper service, you're getting the same one as it's registered as Scoped with the service container.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aterbo
Comment options

Answer selected by aterbo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants