Exemplo n.º 1
0
 private static bool IsAuditable(MemberInfo memberInfo)
 {
     Object[] myAttributes = memberInfo.GetCustomAttributes(true);
     if (myAttributes.Length > 0)
     {
         foreach (object attr in myAttributes)
         {
             if (attr.GetType().ToString().EndsWith("HraAttribute"))
             {
                 HraAttribute attribute = (HraAttribute)attr;
                 if (attribute.auditable)
                 {
                     return(true);
                 }
             }
         }
     }
     return(false);
 }
Exemplo n.º 2
0
 public static bool DoesAffectRiskProfile(MemberInfo memberInfo)
 {
     Object[] myAttributes = memberInfo.GetCustomAttributes(true);
     if (myAttributes.Length > 0)
     {
         foreach (object attr in myAttributes)
         {
             if (attr.GetType().ToString().EndsWith("HraAttribute"))
             {
                 HraAttribute attribute = (HraAttribute)attr;
                 if (attribute.affectsRiskProfile)
                 {
                     return(true);
                 }
             }
         }
     }
     return(false);
 }
Exemplo n.º 3
0
 private static bool IsPersistable(MemberInfo memberInfo)
 {
     Object[] myAttributes = memberInfo.GetCustomAttributes(true);
     if (myAttributes.Length > 0)
     {
         foreach (object attr in myAttributes)
         {
             if (attr.GetType() == typeof(HraAttribute))
             {
                 HraAttribute attribute = (HraAttribute)attr;
                 if (attribute.persistable)
                 {
                     return(true);
                 }
             }
         }
     }
     return(false);
 }