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