public AccessAuthorization(SecurityStore store, string id)
 {
     Id            = id;
     _store        = store;
     _bag          = new SecurityBag();
     _bag.Added   += BagOnAdded;
     _bag.Removed += BagOnRemoved;
 }
 public ConditionalAuthorization(SecurityStore store, string id)
 {
     Id         = id;
     _store     = store;
     _bag       = new SecurityBag();
     Conditions = new ObservableCollection <IAccessCondition>();
     ((INotifyCollectionChanged)Conditions).CollectionChanged += ConditionsChanged;
     _bag.Added   += BagOnAdded;
     _bag.Removed += BagOnRemoved;
 }
Пример #3
0
 public SecurityItem(SecurityStore store, string id)
 {
     _store        = store;
     Id            = id;
     _bag          = new SecurityBag();
     Children      = new SecurityCollection <ISecurityItem>().RegisterCollectionNotifyChanged(ChildrenChanged);
     Parents       = new SecurityCollection <ISecurityItem>().RegisterCollectionNotifyChanged(ParentsChanged);
     _bag.Added   += BagOnAdded;
     _bag.Removed += BagOnRemoved;
 }