/// <summary> /// Manufacture and check object ACL against the current session context. /// </summary> /// <param name="instance"></param> /// <param name="op"></param> public static void Check(IDataObject instance, DataOperation op) { // create an instance of an ACL string aclClassTypeName = string.Format("Vestris.Service.Data.{0}ClassACL", instance.GetType().Name); Type aclClassType = Assembly.GetExecutingAssembly().GetType(aclClassTypeName, true, false); object[] args = { instance }; ACL acl = (ACL)Activator.CreateInstance(aclClassType, args); acl.Check((UserContext)SessionManager.CurrentSessionContext, op); }
public void Add(ACL value) { _accessControlList.AddRange(value.AccessControlList); }
public ACL(ACL value) { _accessControlList.AddRange(value._accessControlList); }