static AggregationFacade() { baseAggregationData = new AggregationData(); forumAggregationData = new ForumAggregationData(); //加载要通知的聚合数据对象 AggregationDataSubject.Attach(baseAggregationData); AggregationDataSubject.Attach(forumAggregationData); }
private static void Timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { if (IsFileHadRewrite()) { ReSetFileChangeTime(); AggregationData.ReadAggregationConfig(); NotifyClearDataBind(); } }
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); }
public static void Detach(AggregationData __aggregationData) { __aggregationDataArrayList.Remove(__aggregationData); }
/// <summary> /// 附加对象 (注:调用下面函数的操作在AggregationFacade类的静态构造函数) /// </summary> /// <param name="__aggregationData"></param> public static void Attach(AggregationData __aggregationData) { __aggregationDataArrayList.Add(__aggregationData); }