/// <summary>
 /// Convinience constructor, allows to pass delegate to method, instead of overriding Test() method.
 /// </summary>
 public Condition(ConditionTest test)
 {
     this.test = test;
 }
 /// <summary>
 /// Convinience constructor, allows to pass delegate to method, instead of overriding Test() method.
 /// </summary>
 public Condition(string name, int priority, ConditionTest test)
     : this(name, priority)
 {
     this.test = test;
 }
 /// <summary>
 /// Convinience constructor, allows to pass delegate to method, instead of overriding Test() method.
 /// </summary>
 public Condition(string name, ConditionTest test)
     : this(name)
 {
     this.test = test;
 }
Example #4
0
 /// <summary>
 /// Same as <see cref="AddCustomEvent(Condition)"/>, but alows to define condition as anonymous method.
 /// </summary>
 public void AddCustomEvent(string name, int priority, ConditionTest test)
 {
     AddCustomEvent(new Condition(name, priority, test));
 }
Example #5
0
 /// <summary>
 /// Convinience constructor, allows to pass delegate to method, instead of overriding Test() method.
 /// </summary>
 public Condition(ConditionTest test)
 {
     this.test = test;
 }
Example #6
0
 /// <summary>
 /// Convinience constructor, allows to pass delegate to method, instead of overriding Test() method.
 /// </summary>
 public Condition(string name, ConditionTest test)
     : this(name)
 {
     this.test = test;
 }
Example #7
0
 /// <summary>
 /// Convinience constructor, allows to pass delegate to method, instead of overriding Test() method.
 /// </summary>
 public Condition(string name, int priority, ConditionTest test)
     : this(name, priority)
 {
     this.test = test;
 }
Example #8
0
 get => this.GetRequired(ConditionTest, Expression.Parse);