Exemple #1
0
        public virtual void AddContextDefinition(ContextDefinition toAdd)
        {
            ContextDefinition match = this.GetContextDefinition(toAdd.Name);

            if (match == null)
            {
                this.WorkFlow.ContextDefinitions.Add(toAdd);
            }
        }
Exemple #2
0
 public void AnyOf(string name, string literal, Type enumType, bool exclusive)
 {
     this.definition = new ContextDefinition(name, literal, this.FromEnum(enumType), ValidateOptions.AnyOf, exclusive);
 }
Exemple #3
0
 public void AnyOf(string name, string literal, IEnumerable <ContextItem> items, bool exclusive)
 {
     this.definition = new ContextDefinition(name, literal, items, ValidateOptions.AnyOf, exclusive);
 }