AspCore and dependency injection #134
Answered
by
ctolkien
AhmedSuror
asked this question in
Q&A
-
There is no documentation about using this Lib for slugifying AspCore HTTP requests, also there is no mentioning of Dependency Injection implementation. |
Beta Was this translation helpful? Give feedback.
Answered by
ctolkien
Sep 30, 2024
Replies: 1 comment
-
Hi @AhmedSuror - sorry this one was missed. You can certainly just register an |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ctolkien
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @AhmedSuror - sorry this one was missed. You can certainly just register an
(I)SlugHelper
in your DI container. If all of your configuration is always the same, it should be fine being a singleton.