-
Web Client Software Factory: second drop
2 CommentsThe second weekly drop of the Web Client Software Factory is out! You can get it from the releases page.
One of the changes that I'm most excited about is the ability to have (a kind of) dependency injection on master pages, user controls and web services apart from regular Web forms. From the releases page:
Now, instead of happening automatically, an object that wishes to be injected must call a single static method:
Microsoft.Practices.CompositeWeb.WebClientApplication.BuildItemWithCurrentContext(this);
This
will cause the DI container to walk the given instance, and resolve any
dependencies. The disadvantage is that this isn't really dependency
injection anymore; the object must know that there is a DI container
and invoke it. However, it has the major advantage that getting
dependencies resolved now works for, and in exactly the same manner,
pages, master pages, controls, and web services. Among other things,
this enables building user controls and master pages using the MVP
pattern.Please let us know what you think of this change on our forum.
Go grab the zip and start playing with it
-
2 Comments:
Leave a comment
Your email address will not be published.

http:// said on August 8, 2007:
Hi
I want to use databind attribute for simple databinding in WCSF. Can I accomplish this using existing stratagy’s that are available in objectbuilder?.
I want to replace
txtBox.text= objCustomer.Name
with something like this
[Databind(Customer.Name)]
txtBox
Do you have an example ? Can you please share it in your blog?
Thanks
Sunny
http:// said on November 19, 2007:
Muhammead, make sure you have the Workflow Extensions for Visual Studio 2005 installed.
Mariano