You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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