Services Dependencies

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

Hi,

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?

Thanks
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:

http://www.gotdotnet.com/codegallery/messageboard/thread.aspx?id=22f72167-af95-44ce-a6ca-f2eafbf2653c&mbid=c09776ca-f94c-4c83-a80c-75d381cabdd6&threadid=d189918e-1751-4069-a6f9-1761938d7467


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