Skip to content

DI Lifetime / Intercepting Specific Methods? #154

Answered by JSkimming
azresource asked this question in Q&A
Discussion options

You must be logged in to vote

Hi

Firstly, concerning scoped vs singleton of repository classes, that's down to your implementation. The terms repository and scope are overloaded concepts, and a detailed discussion is beyond the scope of this code repository (see what I mean?).

Secondly, concerning intercepting specific methods, I'm unfamiliar with the feature of Castle.Core. But since this library sits on top of Castle.Core such a feature should be available to you unless I have inadvertently hidden it.

One last point. The line between DI library API and Castle.Core is often confused. A DI library may code with to Castle.Core in mind, they don't tend to code considering this library (happy to be proven wrong, BTW). In…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by JSkimming
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