Example #1
0
 private ContextControllerFilterEntry ActivateFilterWithInit(
     ContextConditionDescriptorFilter filter,
     ContextControllerDetailKeyedItem item,
     EventBean optionalTriggeringEvent,
     IntSeqKey controllerPath,
     object[] parentPartitionKeys)
 {
     return new ContextControllerKeyedFilterEntryWInit(this, controllerPath, item, parentPartitionKeys, filter);
 }
 public ContextControllerKeyedFilterEntryWInit(
     ContextControllerKeyedImpl callback,
     IntSeqKey controllerPath,
     ContextControllerDetailKeyedItem item,
     object[] parentPartitionKeys,
     ContextConditionDescriptorFilter initCond)
     : base(callback, controllerPath, item, parentPartitionKeys)
 {
     this.initCond = initCond;
     Start(initCond.FilterSpecActivatable);
 }
Example #3
0
        public static ContextControllerDetailKeyedItem FindInitMatchingKey(
            ContextControllerDetailKeyedItem[] items,
            ContextConditionDescriptorFilter init)
        {
            ContextControllerDetailKeyedItem found = null;
            foreach (var item in items) {
                if (item.FilterSpecActivatable.FilterForEventType == init.FilterSpecActivatable.FilterForEventType) {
                    found = item;
                    break;
                }
            }

            if (found == null) {
                throw new ArgumentException(
                    "Failed to find matching partition for type '" + init.FilterSpecActivatable.FilterForEventType);
            }

            return found;
        }