void PollVoteEvents_AfterDelete(PublicApi.PollVoteAfterDeleteEventArgs e)
        {
            var poll = PublicApi.Polls.Get(e.PollId);

            if (poll == null || !poll.Author.Id.HasValue || poll.Author.Id.Value == e.UserId)
            {
                return;
            }

            DeleteNotification(e.PollId, PublicApi.Polls.ContentTypeId, poll.Author.Id.Value, e.UserId);
        }
Ejemplo n.º 2
0
 void Events_AfterDelete(PublicApi.PollVoteAfterDeleteEventArgs e)
 {
     _metricController.QueueForCalculation(e.PollId, PublicApi.Polls.ContentTypeId);
 }