Some performance related observations about ReadOnlyBase #3428
Unanswered
Chicagoan2016
asked this question in
Questions
Replies: 1 comment 4 replies
-
I'm sure private void VerifyAuthorizationCache()
{
if (_readResultCache == null)
_readResultCache = new ConcurrentDictionary<string, bool>();
if (_executeResultCache == null)
_executeResultCache = new ConcurrentDictionary<string, bool>();
if (!ReferenceEquals(ApplicationContext.User, _lastPrincipal))
{
// the principal has changed - reset the cache
_readResultCache.Clear();
_executeResultCache.Clear();
_lastPrincipal = ApplicationContext.User;
}
}
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to find out performance bottlenecks in our application and two things stand out in dottrace (JetBrains) tool.
One is the VerifyAuthoriztionCache and other is CanReadProperty, both from Csla.ReadOnlyBase.
In our Readonly objects we are not using any authorization rules, meaning the method
'AddObjectAuthorizationRules()' in our parent readonly list is empty and same is the case for
'AddBusinessRules' in the child read only objects.
Kind Regards
Beta Was this translation helpful? Give feedback.
All reactions