Windows Vista Forums

Question on proper location of class in WCF App

  1. #1


    Bill Gower Guest

    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

  2. #2


    John Saunders [MVP] Guest

    Re: Question on proper location of class in WCF App

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

    >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

Question on proper location of class in WCF App

Similar Threads
Thread Forum
PLEASE help me with this homework question in my Vista class?
While you are installing an Internet Web server on a client's network, the owner of the company tells you that he also wants to build a Web server...
General Discussion
Moving from class C to class B ip address scheme, any tips(DC/DNS)
We are about to migrate away from a class C ip structure (192.168.100.x) to class B (http://www.subnet-calculator.com/subnet.php?net_class=B) I...
Server General
When a class is both an inherited class of another, and alsoimplements an interface method
The code below doesn't compile (after I added ": IComparable" on the first line). Any advice on how to get it compiled? public class...
.NET General
win32_pingstatus class / dns class
http://msdn.microsoft.com/en-us/library/aa394350.aspx I derived the statuscode from above and created a switch statements to ping various...
PowerShell
Question about Class Destruction
I've been using .net for a while now as novice user and I understand the concept of the garbage collection to a degree. My question is simple and...
.NET General
BUG? Invalid location after Set-Location \\MyMachine
Let's invoke the following command (where \\MyMachine is the existing network name): 0> Set-Location \\MyMachine Set-Location : Command...
PowerShell
Question from .net beginner regarding rebuilding custom class library
I have two vb.net projects, one that creates a class library and another that uses ("consumes") the class library. Whenever I rebuild the class...
.NET General