示例#1
0
 static AggregationFacade()
 {
     baseAggregationData  = new AggregationData();
     forumAggregationData = new ForumAggregationData();
     AggregationDataSubject.Attach(baseAggregationData);
     AggregationDataSubject.Attach(forumAggregationData);
 }
示例#2
0
        static AggregationFacade()
        {
            baseAggregationData  = new AggregationData();
            forumAggregationData = new ForumAggregationData();
            spaceAggregationData = new SpaceAggregationData();
            albumAggregationData = new AlbumAggregationData();
            photoAggregationData = new PhotoAggregationData();
            goodsAggregationData = new GoodsAggregationData();

            //加载要通知的聚合数据对象
            AggregationDataSubject.Attach(baseAggregationData);
            AggregationDataSubject.Attach(forumAggregationData);
            AggregationDataSubject.Attach(spaceAggregationData);
            AggregationDataSubject.Attach(albumAggregationData);
            AggregationDataSubject.Attach(photoAggregationData);
        }