示例#1
0
        public override void OnUnregisterNotification(ISymbol symbol, SymbolNotificationType type)
        {
            IAccessorNotification notification = this._inner as IAccessorNotification;

            if (this._inner == null)
            {
                throw new ValueAccessorException($"Accessor '{this._inner}' doesn't support INotificationAccessor", this._inner);
            }
            notification.OnUnregisterNotification(symbol, type);
        }
示例#2
0
        public DynamicValueAccessor(IAccessorValue inner, IAccessorValueFactory factory, ValueCreationMode mode) : base(factory, ((ValueAccessor)inner).Connection)
        {
            this._mode  = ValueCreationMode.Default;
            this._mode  = mode;
            this._inner = inner;
            IAccessorNotification notification = inner as IAccessorNotification;

            if (notification != null)
            {
                base._notificationSettings = notification.DefaultNotificationSettings;
            }
        }