예제 #1
0
        public ReactiveValue
            (EntityReference senderID, Action <EntityReference, T> callback, T initialValue = default
            , bool notifyImmediately = false, ReactiveType notifyOnChange = ReactiveType.ReactOnChange)
        {
            _subscriber = callback;

            if (notifyImmediately)
            {
                _subscriber(_senderID, initialValue);
            }

            _senderID       = senderID;
            _value          = initialValue;
            _notifyOnChange = notifyOnChange;
        }
예제 #2
0
 public ReactiveValue(EntityReference senderID, Action <EntityReference, T> callback, ReactiveType notifyOnChange)
 {
     _subscriber     = callback;
     _notifyOnChange = notifyOnChange;
     _senderID       = senderID;
 }