开发者

How to learn Autofac fast for Windows development?

开发者 https://www.devze.com 2023-01-15 16:12 出处:网络
I\'m about to start a p开发者_开发百科roject where the IoC being used is AutoFac - at a new company. I have no prior experience with DI/IoC and want to get up to speed on this so I don\'t look toooo u

I'm about to start a p开发者_开发百科roject where the IoC being used is AutoFac - at a new company. I have no prior experience with DI/IoC and want to get up to speed on this so I don't look toooo unintelligent. This will be for a WPF application (which again I'm not too cluey about but that will be OK)

What are some good resources I could use to learn Autofac and IoC in general? I start in our initial phase on Monday next week :( I've held off everything this weekend to study!

I should mention that while the idea of IoC's are great, I don't see how we carry the "container" around with us when we use it in other areas. Do we create a singleton (that seam to say badness) or do we create a static class with an accessor to GetService?

EDIT: I am reading through the codeproject article on Autofac and sort of have an idea of what IoC is trying to solve via the NInject tutorial too, but nothing solid.


I put up a set of simple posts on Dependency Injection (and its benefits) here. The whole thing should take perhaps 20 minutes to read.

0

精彩评论

暂无评论...
验证码 换一张
取 消