Ejemplo n.º 1
0
 private void HandleStateCombinationsChanged(StateCombination stateCombination)
 {
     if (stateCombination != null)
     {
         stateCombination.Index = StateCombinationsInternal.IndexOf(stateCombination);
     }
 }
Ejemplo n.º 2
0
        public StateCombination CreateStateCombination()
        {
            if (Class == null)
            {
                throw new InvalidOperationException(
                          "Cannot create StateCombination if no SecurableClassDefinition is assigned to this StatefulAccessControlList.");
            }

            var stateCombination = StateCombination.NewObject();

            StateCombinationsInternal.Add(stateCombination);

            return(stateCombination);
        }
Ejemplo n.º 3
0
 public static ObjectList<StateUsage> GetStateUsagesForQuery (this StateCombination stateCombination)
 {
   throw new NotSupportedException ("GetStateUsages() is only supported for building LiNQ query expressions.");
 }