Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User Audit Info Logic Location Best Practice
Message
From
20/10/2004 11:34:38
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
User Audit Info Logic Location Best Practice
Miscellaneous
Thread ID:
00953023
Message ID:
00953023
Views:
56
I have the need to capture user audit information as follows:
Public Function GetCurrentUser() As String
Dim CurrentUser As String
CurrentUser = SystemInformation.UserDomainName
Return CurrentUser
End Function

Public Function GetCurrentComputer() As String
Dim CurrentComputer As String
CurrentComputer = SystemInformation.ComputerName
Return CurrentComputer
End Function

The SystemInformation namespace is found within System.Windows.Forms and OakLeaf.MM.Main.Windows.Forms.

Where is a best practice location to place this logic common to almost all business objects (encapsulation)?
How could I reference and use this information in my business objects (e.g. default values)?

ANY ideas/strategies are appreciated!
THANKS
Joe Salvatore, Programmer/Analyst - The Stellar Group
Next
Reply
Map
View

Click here to load this message in the networking platform