Services Dependencies

Topics: CAB & Smart Client Software Factory
Dec 4, 2005 at 12:34 PM
originally posted by: markgmarkg


Service A depends on service B.
I used ServiceDependency attribute on ServiceB-type member in ServiceA class.

Running this fails - "...Service is not available in the current context."

Q1: Is it unsupported scenario?

Q2: Speaking about design issues:
"the term service describes a component that implements some infrastructure-related functionality that other components in the application may need to use"
In BankTeller sample you use services to retrieve/produce data for specific workitems.
In many scenarios I'd like to retrieve data from multiple services and combine it in some way.
Should this combining component be a service?

Dec 6, 2005 at 8:48 AM
originally posted by: jdressel

Q1 Yes, not supported. This may be a repeat of what you already know, but please see:

In this scenario, we custom add our Services via the Module.AddServices() method.