예제 #1
0
 public void HandleEvent(RemoveReviewEvent @event)
 {
     if (Utils.GetTheDay(DateTime.Now.AddDays(-10)) < @event.TheDay)
     {
         _redisHelper.HashDecrement(
             string.Format(KEY_EVAL_MOTTO_FMT, @event.TheDay, @event.Review),
             F_REVIEWS);
     }
 }
예제 #2
0
 public void HandleEvent(UnLoveCollectionEvent @event)
 {
     _redisHelper.HashDecrement(string.Format(KEY_COLLECTION_FMT,
                                              @event.LoveCollection.CID), F_LOVES);
 }