public EventBinding( Func <TValue, TValue> filter, Action <TValue> action, EventRecurrency recurrency) { Filter = filter; Action = action; Recurrency = recurrency; }
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)); } }