public void Trigger() { if (_trigger.IsValid) { _trigger.Trigger(); } }
public static void Synchronize <T>(this IValueStateObserver <T> state, IEventTrigger <T> evnt) where T : struct { state.OnChange.Register(evnt); if (evnt.IsValid) { evnt.Trigger(state.Value); } }
public virtual void Trigger() { if (!IsValid) { return; } _callback.Trigger(); }
public static void Synchronize <T>(this IReferenceHolder <T> referenceHolder, IEventTrigger evnt, bool evenDefault) { referenceHolder.OnReferenceSet.Register(evnt); if (evenDefault || SafeNotDefault(referenceHolder.CurrentReference)) { evnt.Trigger(); } }
public static void Synchronize <T>(this ICachedCollectionObserverEnumerable <T> collection, IEventTrigger <T> evnt, bool evenDefault = true) { collection.OnElementAdded.Register(evnt); foreach (var e in collection) { if (evenDefault || SafeNotDefault(e)) { evnt.Trigger(e); } } }
public static void Synchronize <T>(this ICachedCollectionObserver <T> collection, IEventTrigger <T> evnt, bool evenDefault = true) { collection.OnElementAdded.Register(evnt); var count = collection.Count; for (int i = 0; i < count; i++) { var e = collection[i]; if (evenDefault || SafeNotDefault(e)) { evnt.Trigger(e); } } }
public void Trigger() { _evnt.Trigger(); }
public void RegisterAndStart(IEventTrigger <bool> evnt) { _changeStateEvent.Register(evnt); evnt.Trigger(Free); }
public void Trigger(T t) { _refinedEvent.Trigger(_filterFunction(t)); }