Esempio n. 1
0
 public void Invoke()
 {
     if (_condition.ShouldExecute())
     {
         _innerBehavior.Invoke();
     }
 }
 protected override void invoke(Action action)
 {
     if (_condition.ShouldExecute())
     {
         action();
     }
 }
Esempio n. 3
0
 public bool MatchesRequest()
 {
     return(_condition.ShouldExecute());
 }
Esempio n. 4
0
 public bool MatchesRequest(IFubuRequestContext context)
 {
     return(_condition.ShouldExecute(context));
 }