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

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