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

            if (match == null)
            {
                this.WorkFlow.ContextDefinitions.Add(toAdd);
            }
        }
예제 #2
0
파일: Builder.cs 프로젝트: mchnry/flow
 public void AnyOf(string name, string literal, Type enumType, bool exclusive)
 {
     this.definition = new ContextDefinition(name, literal, this.FromEnum(enumType), ValidateOptions.AnyOf, exclusive);
 }
예제 #3
0
파일: Builder.cs 프로젝트: mchnry/flow
 public void AnyOf(string name, string literal, IEnumerable <ContextItem> items, bool exclusive)
 {
     this.definition = new ContextDefinition(name, literal, items, ValidateOptions.AnyOf, exclusive);
 }