Beispiel #1
0
        internal bool IsGlobal()
        {
            ObjectScopeAttribute customAttribute = base.GetType().GetTypeInfo().GetCustomAttribute <ObjectScopeAttribute>();

            return(customAttribute != null && customAttribute.ConfigScope == ConfigScopes.Global);
        }
Beispiel #2
0
 internal bool IsApplicableToTenant(out ObjectScopeAttribute objectScope)
 {
     objectScope = base.GetType().GetTypeInfo().GetCustomAttribute <ObjectScopeAttribute>();
     return(objectScope != null && objectScope.IsTenant);
 }