public AzRole() { //Set Parent is null to prevent ListCollection changes item's Parent. AssignedOperations = new AzItemCollection <AzOperation>(null, GetAssignedOperations, () => !IsNew); AssignedOperations.CollectionChanged += TheValue_HasChanged; AssignedRoles = new AzItemCollection <AzRole>(null, GetAssignedRoles, () => !IsNew); AssignedRoles.CollectionChanged += TheValue_HasChanged; }
public AzScope() { Roles = new AzItemCollection <AzRole>(this, GetRoles, () => !IsNew); Roles.CollectionChanged += TheValue_HasChanged; Groups = new AzItemCollection <AzGroup>(this, GetGroups, () => !IsNew); Groups.CollectionChanged += TheValue_HasChanged; RoleAssignments = new AzItemCollection <AzRoleAssignment>(this, GetRoleAssignments, () => !IsNew); }
internal AzApplication(AzManContext context, IAzApplication app = null) { Guard.ArgumentIsNotNull(context, nameof(context)); _context = context; IAzItem = app; Operations = new AzItemCollection <AzOperation>(this, GetOperations, () => !IsNew); Operations.CollectionChanged += TheValue_HasChanged; Scopes = new AzItemCollection <AzScope>(this, GetScopes, () => !IsNew); Scopes.CollectionChanged += TheValue_HasChanged; }
public AzMember() { AssignedRoles = new AzItemCollection <AzRole>(null, GetAssignedRoles, () => Name.IsNotNull()); AssignedRoles.CollectionChanged += TheValue_HasChanged; }
public AzGroup() { Members = new AzItemCollection <AzMember>(this, GetMembers, () => !IsNew); }