コード例 #1
0
        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();
        }
コード例 #2
0
        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);
        }