the actual roles of different binds #9601
Answered
by
vince-fugnitto
zhoujingfighting
asked this question in
Q&A
-
I get confused about the bind bind(ElectronMenuUpdater).toSelf().inSingletonScope(); in some case , bind(SampleUpdaterClient).toService(SampleUpdaterClientImpl); in other case , bind(SampleUpdater).toDynamicValue(context => {
const client = context.container.get(SampleUpdaterClientImpl);
return ElectronIpcConnectionProvider.createProxy(context.container, SampleUpdaterPath, client);
}).inSingletonScope(); so , any links about explaining different bindings?? |
Beta Was this translation helpful? Give feedback.
Answered by
vince-fugnitto
Jun 16, 2021
Replies: 1 comment
-
@zhoujingfighting the framework uses Inversify JS for dependency injection, you can take a look at their documentation to understand the different types of bindings further: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vince-fugnitto
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@zhoujingfighting the framework uses Inversify JS for dependency injection, you can take a look at their documentation to understand the different types of bindings further: