Quantcast
Channel: patterns & practices - Smart Client Guidance
Viewing all articles
Browse latest Browse all 27

New Post: ServiceDependency Order qustion

$
0
0

Hi all,

 

I have used always ServiceDependency Attribute in presenters of view in order to get a pointer to the service. it works nice if when the view is created we already have the Service in the workItem.

But, what if I want to instantiate the screen before the service is created, yhen I want to give the screen the pointer to the service when the service will be created later.

I sought that when the service will be added to the WorkItem it will Execute the set of my ServiceDependency property, but this does not happen. Isn't this what Dependency Injection means?

How can I achieve this behavior? should I register in the presenters to the Added event of the services collection of my WI?

Thanks,

Efy

 


Viewing all articles
Browse latest Browse all 27

Trending Articles