picosam
Joined: 06 Aug 2008 Posts: 6
|
Posted: Wed Aug 06, 2008 1:28 pm Post subject: Using the Container in the Service Layer |
|
|
Hello, is it advisable or not to use the container (make calls to Castle-specific classes) or to even include references to Castle assemblies in the Service Layer? By Service Layer I'm referring simply (in my case) to an assembly that contains the business code, data access objects and model. I have another assembly that has the Web Service access, for example and the Web access.
My thoughts was that the container should only be referenced in those two outermost layers, configured in, for instance, the web.config file and used from there. I'm using integration points such as WCF I could actually avoid referencing Castle classes in my code completely. Am I on the right path here? Any examples?
Thank you,
Sammy |
|