What is the benefits of Services

Topics: CAB & Smart Client Software Factory
Jun 8, 2006 at 4:58 PM
originally posted by: ching100

I tried Services of CAB, but I wonder in which case we must use Services? and What's the benefits of Services?

If for providing data from data access layer, it is not necessary for us because our data collections are dynamically loaded from database and read from large tables. In that case, the service overhead will be a problem.

So, who can tell me something guide about Services in CAB? Thank you so much.
Jun 9, 2006 at 2:32 AM
originally posted by: MarcoPaul

A service is just that, a component that provides a 'service', whether it is for gathering info from a data store, providing caching, encryption, security, etc. So, imagine you are using the Microsoft Caching block and you implement a caching service that utilizes this tool. B/c of dependency injection, your cab components have no idea what underlying implementation is providing this service. So if in the future you want to switch to another caching strategy, your client code remains unaffected.

Does this help?