Skip to content
Discussion options

You must be logged in to vote

It is up to the host (WinForms, WPF, Uno, etc.) to set the current user. In WinForms/WPF CSLA defaults to getting the user from System.Threading.Thread.CurrentThread.CurrentPrincipal (or something along that line).

Or at least it used to do this. A few years ago, Microsoft changed how things work, so the current thread is no longer a reliable source for the user identity. Grumble.

So, assuming CSLA 5 here, the default behavior for CSLA is still to try to get the principal from the thread.

public virtual IPrincipal GetUser()

However, if your app references the Csla.Xaml package, the code attempts

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gem4511
Comment options

Answer selected by gem4511
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants