示例#1
0
 public PropertyObserverFactory(
     IObservableFactoryFactory observableFactoryFactory,
     IPropertyProxyFactory propertyProxyFactory,
     IPropertyProxyWrapper propertyProxyWrapper)
 {
     this.observableFactoryFactory = observableFactoryFactory;
     this.propertyProxyFactory     = propertyProxyFactory;
     this.propertyProxyWrapper     = propertyProxyWrapper;
 }
示例#2
0
        public ObservablePropertyHolder(
            IPropertyProxyFactory propertyProxyFactory,
            IPropertyProxyWrapper propertyProxyWrapper,
            IObservableFactoryFactory observableFactoryFactory)
        {
            this.propertyProxyWrapper = propertyProxyWrapper;
            this.propertyProxyFactory = propertyProxyFactory;
            this.observableFactory    = observableFactoryFactory.CreateFactory(
                OnPropertyStateChanged,
                OnCollectionItemsChanged);

            RootObservableProperty = observableFactory.CreateObservableProperty(typeof(T));
        }
        public StoreHolder(
            IStoreDependencyInjector <TStore> dependencyInjector,
            IStoreMetadata <TStore> storeMetadata,
            IPropertyProxyFactory propertyProxyFactory,
            IPropertyProxyWrapper propertyProxyWrapper,
            IObservableFactoryFactory observableFactoryFactory)
        {
            DependencyInjector        = dependencyInjector;
            this.storeMetadata        = storeMetadata;
            this.propertyProxyFactory = propertyProxyFactory;
            this.propertyProxyWrapper = propertyProxyWrapper;
            this.observableFactory    = observableFactoryFactory.CreateFactory(
                OnPropertyStateChanged,
                OnCollectionItemsChanged);

            RootObservableProperty = CreateObservableProperty(typeof(TStore));
            InitializeStoreReactables();
        }