public void TryHandleEvent(FootChatStatisticsEvent @event) { var date = @event.Content.Date; var statisticsEvent = _StatisticsEventFactory.CreateEvent(); statisticsEvent.AddTodayFootPrintStatistics(date); statisticsEvent.AddTodayUserStatistics(date); statisticsEvent.AddTodayAttentionStatistics(date); statisticsEvent.AddTodayInteractionStatistics(date); statisticsEvent.AddTodayDockedStatistics(date); SendFootChatStatisticsEvent(); }
public void SendFootChatStatisticsEvent() { var newEvent = new FootChatStatisticsEvent { Delay = DateTime.Now.Date.AddDays(1), Priority = 8, Content = new FootChatStatisticsContent { Date = DateTime.Now.Date } }; new Tgnet.Aliyun.MNS.EventService().Post(newEvent); }