ASP vNext DI integration

30 views
Skip to first unread message

Tom Dietrich

unread,
May 14, 2015, 12:42:00 PM5/14/15
to castle-pro...@googlegroups.com
Are there plans to build capabilities within windsor to act as the DI container for the new ASP vNext DI? Autofac is working on it: http://alexmg.com/autofac-4-0-alpha-1-for-asp-net-5-0-beta-3/ 



hammett

unread,
May 15, 2015, 1:20:22 AM5/15/15
to castle-pro...@googlegroups.com
I probably need to do a lot of catch up on these topics, but what's
the main selling point of asp vnext and what's the benefit of having
Windsor adapted to it?

I can only see myself investing time on this if it has immediate and
tangible benefits.
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Development List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to castle-project-d...@googlegroups.com.
> To post to this group, send email to castle-pro...@googlegroups.com.
> Visit this group at http://groups.google.com/group/castle-project-devel.
> For more options, visit https://groups.google.com/d/optout.



--
Cheers,
hammett
http://www.d-collab.com/
http://www.hammettblog.com/

Tom Dietrich

unread,
May 15, 2015, 8:15:47 AM5/15/15
to castle-pro...@googlegroups.com
The new version is a huge departure. It now uses NPM and Bower for client side packages, has json based configurations, uses a html-like tag syntax for the Razor view engine, now uses the same controllers for both MVC and WebAPI, and was developed with performance and modern development practices in mind. The session context for example has been reduced from 30k to 2k. 

Microsoft has built DI into the technology. It's not unity or mef, it's a completely new DI container- however it is with a very simple container with poor features. It can only do constructor injection, and can't do constructor selection- any component with more than one public constructor will cause errors. It doesn't support per web-request lifestyles. Here's a blog about it: http://blogs.msdn.com/b/webdev/archive/2014/06/17/dependency-injection-in-asp-net-vnext.aspx

Anyway, here's the gitub repo for the DI stuff -> https://github.com/aspnet/DependencyInjection . As you can see, Autofac and Ninject both have submitted alternate DI implementations for usage. I think that all that needs to be done is for someone to write a windsor based implementation of these abstractions -> https://github.com/aspnet/DependencyInjection/tree/dev/src/Microsoft.Framework.DependencyInjection.Abstractions



On Friday, May 15, 2015 at 1:20:22 AM UTC-4, hammett wrote:
I probably need to do a lot of catch up on these topics, but what's
the main selling point of asp vnext and what's the benefit of having
Windsor adapted to it?

I can only see myself investing time on this if it has immediate and
tangible benefits.

On Thu, May 14, 2015 at 9:42 AM, Tom Dietrich <tom.di...@gmail.com> wrote:
> Are there plans to build capabilities within windsor to act as the DI
> container for the new ASP vNext DI? Autofac is working on it:
> http://alexmg.com/autofac-4-0-alpha-1-for-asp-net-5-0-beta-3/
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Development List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
Reply all
Reply to author
Forward
0 new messages