Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
 public AzMember()
 {
     AssignedRoles = new AzItemCollection <AzRole>(null, GetAssignedRoles, () => Name.IsNotNull());
     AssignedRoles.CollectionChanged += TheValue_HasChanged;
 }
Exemplo n.º 5
0
 public AzGroup()
 {
     Members = new AzItemCollection <AzMember>(this, GetMembers, () => !IsNew);
 }