Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - Question on proper location of class in WCF App

 
 
Old 09-16-2007   #1 (permalink)
Bill Gower


 
 

Question on proper location of class in WCF App

I have a class called LWUser which contains the properties and methods that
represent a user of the system. This class sits in the Business Services
solutions on the server. I also have a class called LWUserUI which sits on
the client side in the Client solution. I am going to create a third class,
LoggedInUser, a singleton class, which holds information such as security
access, user info for the current logged in user. I am going to use a
singleton class as there can only be one user logged in and I need this
information throughout the app. Where should the class, LoggedInUser sit,
in the the UI solution on the client side or in the Business Services
solution on the server side?

Bill



My System SpecsSystem Spec
Old 09-17-2007   #2 (permalink)
John Saunders [MVP]


 
 

Re: Question on proper location of class in WCF App

"Bill Gower" <billgower@xxxxxx> wrote in message
news:%23vMQ9oJ%23HHA.4736@xxxxxx
Quote:

>I have a class called LWUser which contains the properties and methods that
>represent a user of the system. This class sits in the Business Services
>solutions on the server. I also have a class called LWUserUI which sits on
>the client side in the Client solution. I am going to create a third
>class, LoggedInUser, a singleton class, which holds information such as
>security access, user info for the current logged in user. I am going to
>use a singleton class as there can only be one user logged in and I need
>this information throughout the app. Where should the class, LoggedInUser
>sit, in the the UI solution on the client side or in the Business Services
>solution on the server side?
Where does the concept of "logged-in" sit? Is it an aspect of the LWUser
class or of the LWUserUI class? The LoggedInUser class should sit nearest
where it gets its data from.

On the other hand, if "LoggedInUser" is a unique concept that isn't
dependant on either the businesss services layer or on the UI, then perhaps
it should be its own service.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
When a class is both an inherited class of another, and alsoimplements an interface method .NET General
win32_pingstatus class / dns class PowerShell
Question about Class Destruction .NET General
BUG? Invalid location after Set-Location \\MyMachine PowerShell
Question from .net beginner regarding rebuilding custom class library .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46