With the Ninject Dependency Injection Container, I can perform self-binding in a manner similar to the following:
MyClass mc = ninjectKernel.Get<MyClass>();
Is there an equivalent sort of operation in Castle Windsor?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Castle Windsor’s corresponding call is (unless I’m missing some intricate functionality in NInject)
and, as you point out in the comments, you’ll need to register the class against itself to work in Windsor.