Wrox Programmer Forums
|
BOOK: Professional ASP.NET Design Patterns
This is the forum to discuss the Wrox book Professional ASP.NET Design Patterns by Scott Millett; ISBN: 978-0-470-29278-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET Design Patterns section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 2nd, 2018, 10:03 AM
Registered User
 
Join Date: Jan 2018
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default Service Layer - Multiple Entry Points ?

Hello,

I am working on a pre-existing project that presents a situation I never thought of. The service layer has hundreds of methods, so its broken out into a couple dozen service layers classes, each with entry points that the Web.UI makes calls to. Is this compliant with standard Enterprise Patterns ? I always thought the Service Layer should be a single class.

Thank-you.
 
Old January 13th, 2018, 03:34 AM
Registered User
 
Join Date: Jan 2013
Posts: 9
Thanks: 0
Thanked 2 Times in 2 Posts
Default

If you take a look at the book's case study you'll find exactly the same setup. The service layer is one separate class library that contains many service classes. Each is described by its interface e.g. the IProductCatalogService on page 474. Conceptually, each service provides methods related to a certain area of the domain. For example, the BasketService class on page 539 provides methods to handle requests for obtaining, creating or modifying the shopping basket.
The Following User Says Thank You to dpant For This Useful Post:
dar1234 (January 16th, 2018)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Why layer = map.Layer[i] does not function jmartinez BOOK: Beginning ArcGIS for Desktop Development using .NET 0 June 11th, 2014 07:37 AM
HOWTO: VPL services with multiple in/out connection points? Philibuster BOOK: Professional Microsoft Robotics Studio ISBN: 978-0-470-14107-6 0 September 14th, 2012 11:32 AM
Ch 6 Service Layer Contracts and DataContract project pingpong BOOK: Professional ASP.NET Design Patterns 0 July 14th, 2012 03:47 PM
Handle error from database layer to applican layer khatu_jec ASP.NET 2.0 Basics 1 November 9th, 2008 03:51 PM
Web Service with multiple functions deer_reema ASP.NET 1.0 and 1.1 Basics 2 May 3rd, 2006 01:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.