예제 #1
0
 public EventDisposable(TrackingCollection <T> parent, Action <T> handler)
 {
     this.parent  = parent;
     this.handler = handler;
 }
예제 #2
0
 public CaptureDisposable(TrackingCollection <T> parent, Action <T> handler)
 {
     this._parent    = parent;
     this._old       = parent._capture;
     parent._capture = handler;
 }
 public AsyncConditionOtherwiseBuilder(TrackingCollection <IValidationRule> rules, Func <ValidationContext, CancellationToken, Task <bool> > condition)
 {
     _rules     = rules;
     _condition = condition;
 }
 public AsyncConditionBuilder(TrackingCollection <IValidationRule> rules)
 {
     _rules = rules;
 }
 public ConditionOtherwiseBuilder(TrackingCollection <IValidationRule> rules, Func <ValidationContext, bool> condition)
 {
     _rules     = rules;
     _condition = condition;
 }