Automatic Module Discovery With Autofac – Simplified Registration
If you're familiar with Autofac and module registration but want to make things easier, automatic module discovery might be for you! Let's see how it works!
If you're familiar with Autofac and module registration but want to make things easier, automatic module discovery might be for you! Let's see how it works!
I love dependency injection frameworks ever since I started using them. Specifically, I'm obsessed with using Autofac and I have a hard time developing applications unless I can use a solid DI framework like Autofac! I've recently been working with Xamarin and found that I wanted to use dependency injection, but some of the framework doesn't support this well out of the box. I' was adamant to get something going though, so I wanted to show you my way to make this work. Disclaimer: In its current state, this is certainly a bit of a hack. I'll explain why I've taken this approach though! In your Android projects for Xamarin, any class that inherits from Activity is responsible for being created by the framework. This means where we'd usually have the luxury of passing in dependencies via a constructor and…
Charity Water We have a lot of pretty awesome people at Magnet Forensics, and every day I'm reminded just how awesome. A colleague of mine, Danielle Braun, had what I thought was an incredible idea for her birthday. For Danielle's birthday, she's not asking for more new clothes, for her parents to get her a car, for help with paying off tuition, or for some new fancy tech gadgets. But she's not asking for nothing. Danielle is asking for your support with Charity: Water this year. Charity: Water is a non-profit organization with the goal of bringing clean water to people in developing nations that don't have access to it. Reading their mission page probably opens your eyes a fair bit about the lack of access to drinking water in other countries. They're not about some complex and elaborate plan…
My Team Triumph - Canada You probably haven't heard of it, but I can assure you that will change. Today I was fortunate enough to participate in the first My Team Triumph race in Canada. My Team Triumph is a program that allows people of all ages with disabilities to participate in endurance events. With a great volunteer staff, a few angels, and all of the amazing captains, this was made possible. My Team Triumph takes their inspiration from Team Hoyt, whom you've probably heard of. Now I can't do the Hoyt story any justice, so I suggest you head over to their site to get the full details. Team Hoyt is a father-son team that has competed in over a thousand races; however, their team is slightly different than your average racer in these events. Dick Hoyt, the father,…
Background Previously I wrote a bit about singletons. I'm not afraid to say that I think singletons have a time and a place... Okay, I'm afraid to say it, but it's actually how I feel :) After learning more and more about inversion of control design patterns and programming by interfaces, I started to notice just how inflexible singletons are. When you consider using a singleton, you should be considering both the pros and cons without jumping right into it. Here's an example of my approach for mixing singletons, programming by interfaces, and a bit of inversion of control. The Setup I'm actually surprised you got this far. I'm sure you're probably just sticking around to see how messed up this could possibly be. I'm actually proud that this little pattern has worked out so well when I've used it,…