First time here? You are looking at the most recent posts. You may also want to check out older archives or the tag cloud. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS. Thank you for visiting! (hide this)

Ninject

There are 8 entries for the tag Ninject

Slides and code for my SOLID presentation at the .NET Bern User Group

Last Thursday I held a presentation about SOLID principles at the .NET User Group Bern. It was a real pleasure for me to go to Switzerland and speak to a very interested audience. My talk was actually made of two parts: An introduction to SOLID principles A deep dive into Dependency Injection and IoC containers In the IoC part I mainly showed samples using my favorite IoC, Ninject. But I also did one sample using Unity and one with Funq, the new super-fast IoC container developed by Daniel...

How to use Ninject 2 with ASP.NET MVC

Ninject with ASP.NET MVC series How to use Ninject with ASP.NET MVC How to use Ninject to inject dependencies into ASP.NET MVC ActionFilters Extending Ninject to inject dependencies into Action Filters Ninject.FilterInjector v1.5: now injecting inside all filters How to use Ninject 2 with ASP.NET MVC Back in February I wrote a series of posts about Ninject and ASP.NET...

How to quickly get started with Git/GitHub

It seems like the all cool guys are moving to GitHub, which uses, as the name implies, GIT as source control system. What is Git The main difference between Git and all the other main SCS like CVS, SVN, TFS is that Git is a "distributed version control system". This means that when you are working, you are doing against your own “clone” of the repository, you do check-ins locally, and then you push the changes up to the master version of the repository. Given it's distributed nature, Git makes easier contributing to opensource projects, but it...

Ninject 2 hits beta status

It’s not that a secret that I’m a big fan of Ninject, so I’m pretty excited to see that the experimental version that Nate was playing with has been “upgraded” to the next official release of Ninject, v2. It’s completely written from scratch, and it takes full advantage of LINQ. You can read more about what’s new, what has been removed, and what has been added on the official announcement on Nate’s blog. It seems like it also have an even easier way to integrate with ASP.NET MVC. I’ll not have a...

Ninject.FilterInjector v1.5: now injecting inside all kind of filters

Ninject with ASP.NET MVC series How to use Ninject with ASP.NET MVC How to use Ninject to inject dependencies into ASP.NET MVC ActionFilters Extending Ninject to inject dependencies into Action Filters Ninject.FilterInjector v1.5: now injecting inside all filters The first version of my tiny FilterInjector included only the action invoker for ActionFilters. But ASP.NET MVC has four different filters: Action Filters: executed before and after an Action is executed Result Filters: executed before and after the ActionResult returned by...

Extending Ninject to inject dependencies into Action Filters

Ninject with ASP.NET MVC series How to use Ninject with ASP.NET MVC How to use Ninject to inject dependencies into ASP.NET MVC ActionFilters Extending Ninject to inject dependencies into Action Filters Ninject.FilterInjector v1.5: now injecting inside all filters  UPDATE: There is a new version of Ninject.FilterInjector out, version 1.5. You can read more about it on: Ninject.FilterInjector v1.5: now injecting inside all filters  ...

How to use Ninject to inject dependencies into ASP.NET MVC ActionFilters

Ninject with ASP.NET MVC series How to use Ninject with ASP.NET MVC How to use Ninject to inject dependencies into ASP.NET MVC ActionFilters Extending Ninject to inject dependencies into Action Filters Ninject.FilterInjector v1.5: now injecting inside all filters   ActionFilters are a great way to encapsulate pieces of functionalities and move them outside ASP.NET MVC Controllers, but they have a problem: it’s very difficult to inject dependencies...

How to use Ninject with ASP.NET MVC

Ninject with ASP.NET MVC series How to use Ninject with ASP.NET MVC How to use Ninject to inject dependencies into ASP.NET MVC ActionFilters Extending Ninject to inject dependencies into Action Filters Ninject.FilterInjector v1.5: now injecting inside all filters  By default, the ASP.NET MVC framework instantiate controllers calling their default constructor. This makes using Dependency Injection impossible. But, as almost everything inside that framework, the logic...