public static bool HasPrivilege <TDomain>(
     this ISecurityService <TDomain> service, ISecurityObject obj, ISecuritySubject subject, SecurityPrivilege privilege)
 {
     return(service.HasPrivilege(Sec.Target(obj), subject, privilege));
 }
 public static void Demand <TDomain>(this ISecurityService <TDomain> service, ISecurityObject o, ISecuritySubject subject, params SecurityPrivilege[] ps)
 {
     service.Demand(Sec.Target(o), subject, ps);
 }