CheckAssert() static private method

static private CheckAssert ( PermissionSet pSet, CodeAccessPermission demand, PermissionToken permToken ) : bool
pSet PermissionSet
demand CodeAccessPermission
permToken PermissionToken
return bool
Esempio n. 1
0
 internal bool CheckDemand(CodeAccessPermission demand, PermissionToken permToken, RuntimeMethodHandleInternal rmh)
 {
     if (!PermissionSetTriple.CheckAssert(this.AssertSet, demand, permToken))
     {
         return(false);
     }
     CodeAccessSecurityEngine.CheckHelper(this.GrantSet, this.RefusedSet, demand, permToken, rmh, (object)null, SecurityAction.Demand, true);
     return(true);
 }
Esempio n. 2
0
 internal bool CheckSetDemand(PermissionSet demandSet, out PermissionSet alteredDemandset, RuntimeMethodHandleInternal rmh)
 {
     alteredDemandset = (PermissionSet)null;
     if (!PermissionSetTriple.CheckAssert(this.AssertSet, demandSet, out alteredDemandset))
     {
         return(false);
     }
     if (alteredDemandset != null)
     {
         demandSet = alteredDemandset;
     }
     CodeAccessSecurityEngine.CheckSetHelper(this.GrantSet, this.RefusedSet, demandSet, rmh, (object)null, SecurityAction.Demand, true);
     return(true);
 }