ComponentDependency and WorkItem.Items collection

Topics: CAB & Smart Client Software Factory
Jul 1, 2006 at 3:09 AM
originally posted by: tomaseg

I add an object to the items collection of the workitem, then I try to retrieve this object using the ComponentDependency attribute in the constructor of the presenter, but the object builder raises a "Could not locate dependency (object's full type name)" exception. I have tried the same with an array of strings and works fine. Could someone give any info, please?
Jul 1, 2006 at 6:39 AM
originally posted by: ksunair

ComponentDependency is it a SC-BAT or SC-SF attribute? Is it replacement of STATE attribute? Just curious.
Jul 3, 2006 at 9:24 PM
originally posted by: tomaseg

ComponentDependency is CAB (or SC-BAT), injects dependency from the Items collection of the WorkItem. I suposse it is similar to the STATE attribute, different ways of doing practically the same, sharing model's objects. But I want to know why when I add to the state collection it simply adds the object and when I add (add, not addnew) to the items collection it starts to build things (via the object builder).
Mar 2, 2007 at 6:52 AM
I am getting the same exception as tom, can anyone please shed light on whats happening here