Exemplo n.º 1
0
        public override IDisposable Subscribe(IObserver <Any> observer)
        {
            var stateNode = new StateReaderNode(this.storeHolder, SceneConst.StateKey);
            var sceneNode = new SceneWriteNode(stateNode, this.storeHolder);

            return(sceneNode.Subscribe(observer));
        }
Exemplo n.º 2
0
        public override IDisposable Subscribe(IObserver <Any> observer)
        {
            var stateReaderNode = new StateReaderNode(storeHolder, stateKey);
            var textWriterNode  = new TextRenderNode(stateReaderNode, text, "{0}");

            return(textWriterNode.Subscribe(observer));
        }
Exemplo n.º 3
0
        public override IDisposable Subscribe(IObserver <Any> observer)
        {
            var data          = new SamplePageData();
            var pageStackNode = new StateReaderNode(this.StoreHolder, PageConst.StateStackKey);

            return(pageStackNode
                   .Select(it => it.Value <PageStack>().Peek().GetData <SamplePageData>())
                   .Select(it => it != null ? it.Title : "Header")
                   .Select(x => new Any(x))
                   .Subscribe(observer));
        }