Beispiel #1
0
        private bool disposedValue = false; // To detect redundant calls

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    // TODO: dispose managed state (managed objects).
                    if (_rootListener != null)
                    {
                        _rootListener.Dispose();
                    }
                    _pathListeners.Clear();

                    _ourNode = null;
                    _storeNodeUpdateReceiver_PropBag  = null;
                    _storeNodeUpdateReceiver_PropNode = null;
                    _storeNodeUpdateReceiver_Value    = null;
                }

                // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below.
                // TODO: set large fields to null.

                disposedValue = true;
            }
        }
Beispiel #2
0
        // Value from no value
        private bool NotifyReceiver(IReceivePropStoreNodeUpdates_Value <T> propStoreUpdateReceiver)
        {
            PcTypedEventArgs <T> args = new PcTypedEventArgs <T>("The Property", oldValueIsUndefined: true, newValueIsUndefined: true);

            propStoreUpdateReceiver.OnPropStoreNodeUpdated(args);
            return(true);
        }
Beispiel #3
0
        // Value
        internal LocalWatcher
        (
            PSAccessServiceInterface propStoreAccessService,
            LocalBindingInfo bindingInfo,
            IReceivePropStoreNodeUpdates_Value <T> storeNodeUpdateReceiver_Value
        ) : this(propStoreAccessService, bindingInfo)
        {
            _storeNodeUpdateReceiver_Value = storeNodeUpdateReceiver_Value;
            _notificationKind = PropStoreNotificationKindEnum.Value;

            _isComplete = StartBinding(_pathElements, _pathListeners, _isPathAbsolute, out _sourcePropNode);
        }
Beispiel #4
0
 // Value from PcTypedEventArgs
 private bool NotifyReceiver(IReceivePropStoreNodeUpdates_Value <T> propStoreUpdateReceiver, PcTypedEventArgs <T> e)
 {
     propStoreUpdateReceiver.OnPropStoreNodeUpdated(e);
     return(true);
 }