-
Web Client Software Factory vNext: second weekly drop.
No CommentsAs you already know the second weekly drop of
the Web Client Software Factory vNext is already available. You can download it
from the release
section of the project in Codeplex.I'm really excited about is the ability of
using a kind-of dependency injection (DI) on pages, master pages, user controls
and web services.Focusing on simplicity and consistency
getting dependency resolve works in the exactly same manner for pages, master
pages, user controls and web services.The disadvantages of this are that instead of
happening automatically, an object that wishes to be injected must call a
single static method.protected override void OnInit(EventArgs e)
{
Microsoft.Practices.CompositeWeb.WebClientApplication.BuildItemWithCurrentContext(this);
base.OnInit(e);
}
In this example, a user control
is injected by itself calling a
static method.Get the zip, play with it, and comment what
you think about this changes in our forum.Enjoy!
Juan Arguello
-
Leave a comment
Your email address will not be published.