Пример #1
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));
        }
Пример #2
0
 public SamplePageDataNode(INode parent, string pageName, SamplePageData data) : base(parent)
 {
     this.PageName = pageName;
     this.PageData = data;
 }