Migrating To Simple Injector 3.0 With Caliburn Micro Bootstrap Changes
A note before I write this blog, I want to thank all the contributors to the open-source libraries for changing the life of developers by preventing the writing of Boilerplate code. These libraries are not just helpers but they’re much more efficient than legacy code.
Why I’m writing this blog? Well, here’s the reason. I have been a great fan of SimpleInjector because of its performance and Caliburn.Micro for being lightweight and faster. I have been using them since the libraries are in their initial version and doing a great job to date. Today I spent a few hours creating a small application WPF and I was surprised everything changed. It was a whole new world, of course, if you don’t do practice with the training you gonna miss a lot of stuff.
Let’s look at the changes in simple boootstrapper for the WPF application. Caliburn micro gives a nice way to set up a dependency injection by providing virtual methods in base class BootStrapperBase. Since the changes in SimpleInjector v3.0 for returning the list of registered instances that now throws an exception if none found. Here’s the complete code snippet for working with bootstrap, if it would help someone out there struggling the same problem:

Figure 1: LegacyCode

Amit ChoudharyPosted Sep 16, 2015, 6:05 PM
The HTML5 category is not correct for this blog post. Praveen Kumar please get it changed to WPF/MVVM category.
Santhakumar MunuswamyPosted Sep 12, 2015, 3:20 AM
Nice share