Add DI in Rule #278
Answered
by
snikolayev
mohammad1111
asked this question in
Q&A
-
how can Add DI in Rules `public class MyRule : Rule{ private readonly IMyDep _myDep; |
Beta Was this translation helpful? Give feedback.
Answered by
snikolayev
Nov 30, 2021
Replies: 1 comment
-
Sorry for such a late response. Somehow I missed this question. See this wiki page: Rule activation. It has a reference implementation for Autofac DI container, but you can implement a rule activator for any container. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mohammad1111
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry for such a late response. Somehow I missed this question. See this wiki page: Rule activation. It has a reference implementation for Autofac DI container, but you can implement a rule activator for any container.