public override void PopulateContextProperties( IDictionary<string, object> props, object allPartitionKey) { ContextControllerDetailCategoryItem item = CategorySpec.Items[allPartitionKey.AsInt32()]; props.Put(PROP_CTX_LABEL, item.Name); }
public override FilterValueSetParam[][] PopulateFilterAddendum( FilterSpecActivatable filterSpec, bool forStatement, int nestingLevel, object partitionKey, ContextControllerStatementDesc optionalStatementDesc, AgentInstanceContext agentInstanceContextStatement) { if (!forStatement) { if (!EventTypeUtility.IsTypeOrSubTypeOf( filterSpec.FilterForEventType, CategorySpec.FilterSpecActivatable.FilterForEventType)) { return null; } } int categoryNum = partitionKey.AsInt32(); ContextControllerDetailCategoryItem item = CategorySpec.Items[categoryNum]; return FilterSpecActivatable.EvaluateValueSet( item.CompiledFilterParam, null, agentInstanceContextStatement); }
public override ContextPartitionIdentifier GetContextPartitionIdentifier(object partitionKey) { int categoryNum = partitionKey.AsInt32(); ContextControllerDetailCategoryItem item = CategorySpec.Items[categoryNum]; return new ContextPartitionIdentifierCategory(item.Name); }