ApplicationContextManagerTls and WPF Clients #1753
Unanswered
Justin-Rafferty
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just adding this as a note in case it benefits anyone else, took me a while to discover what was going on.
Related: #1424
I began using ApplicationContextManagerTls to solve the problems I was having persisting ClientContext from client (WPF) to server (WCF). Worked perfectly, except now ApplicationContext.User was being dropped every time almost as soon as being set.
Solving this new issue required a new custom ApplicationContextManager class, which inherits from ApplicationContextManagerTls, but which stores principal as a static variable like Csla.Xaml.ApplicationContextManager does.
Beta Was this translation helpful? Give feedback.
All reactions