Пример #1
0
 public EventBinding(
     Func <TValue, TValue> filter,
     Action <TValue> action,
     EventRecurrency recurrency)
 {
     Filter     = filter;
     Action     = action;
     Recurrency = recurrency;
 }
Пример #2
0
 private void Attch(TKey key, Func <TValue, TValue> filter, Action <TValue> action, EventRecurrency r)
 {
     lock (sync)
     {
         if (!bindings.ContainsKey(key))
         {
             bindings.Add(key, new List <EventBinding <TValue> >());
         }
         bindings[key].Add(new EventBinding <TValue>(filter, action, r));
     }
 }