Пример #1
0
        static AggregationFacade()
        {
            baseAggregationData = new AggregationData();

            forumAggregationData = new ForumAggregationData();

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

            AggregationDataSubject.Attach(forumAggregationData);
        }
Пример #2
0
        private static void Timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
        {
            if (IsFileHadRewrite())
            {
                ReSetFileChangeTime();

                AggregationData.ReadAggregationConfig();

                NotifyClearDataBind();
            }
        }
Пример #3
0
        static AggregationFacade()
        {
            baseAggregationData = new AggregationData();

            forumAggregationData = new ForumAggregationData();

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

            AggregationDataSubject.Attach(forumAggregationData);
        }
Пример #4
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);
        }
Пример #5
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);
        }
Пример #6
0
 public static void Detach(AggregationData __aggregationData)
 {
     __aggregationDataArrayList.Remove(__aggregationData);
 }
Пример #7
0
 /// <summary>
 /// 附加对象 (注:调用下面函数的操作在AggregationFacade类的静态构造函数)
 /// </summary>
 /// <param name="__aggregationData"></param>
 public static void Attach(AggregationData __aggregationData)
 {
     __aggregationDataArrayList.Add(__aggregationData);
 }
Пример #8
0
 public static void Detach(AggregationData __aggregationData)
 {
     __aggregationDataArrayList.Remove(__aggregationData);
 }
Пример #9
0
 /// <summary>
 /// 附加对象 (注:调用下面函数的操作在AggregationFacade类的静态构造函数)
 /// </summary>
 /// <param name="__aggregationData"></param>
 public static void Attach(AggregationData __aggregationData)
 {
     __aggregationDataArrayList.Add(__aggregationData);
 }