コード例 #1
0
 public AccessAuthorization(SecurityStore store, string id)
 {
     Id            = id;
     _store        = store;
     _bag          = new SecurityBag();
     _bag.Added   += BagOnAdded;
     _bag.Removed += BagOnRemoved;
 }
コード例 #2
0
 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;
 }