/// <summary> /// Called, when a value becomes dirty /// </summary> /// <param name="property"></param> protected virtual void OnDirtyPropertyEventHandler(IObservableProperty property) { if (!propertiesToBeSent.Contains(property)) { propertiesToBeSent.Add(property); } OnPropertyUpdatedEvent?.Invoke(property.Key, property); }
/// <summary> /// Called, when a value becomes dirty /// </summary> /// <param name="property"></param> protected virtual void OnDirtyProperty(IObservableProperty property) { _notBroadcastedProperties.Add(property); UnsavedProperties.Add(property); // TODO Possible optimisation, by not invoking OnChanged event. // Need to do more research, if this event is necessary to be invoked // on every change OnModifiedEvent?.Invoke(this); OnPropertyUpdatedEvent?.Invoke(property.Key, property); }
private void OnPropertyUpdatedEventHandler(short key, IObservableProperty property) { OnPropertyUpdatedEvent?.Invoke(key, property); }
private void OnPropertyUpdatedEventHandler(short key, IObservableProperty property) { OnPropertyUpdatedEvent?.Invoke(key, property); //logger.Debug($"Property with code: {key} were updated: {property.Serialize()}"); }