Is it possible to inject from the interface of Composition itself? #33
Answered
by
NikolayPianikov
YoshihiroIto
asked this question in
Q&A
-
It seems possible to inject the Composition object itself (I looked for documentation but couldn't find it, maybe I'm looking in the wrong place). I have written a sample below. (1) works correctly
|
Beta Was this translation helpful? Give feedback.
Answered by
NikolayPianikov
Aug 16, 2023
Replies: 1 comment 1 reply
-
Sorry for delay, I'm away from my computer right now. Try adding a binding: Bind<IComposition>().To(ctx =>
{
ctx.Inject<Composition>(out var comosition);
return composition;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
NikolayPianikov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry for delay, I'm away from my computer right now. Try adding a binding: