public override void Process(EventContext ctx) { _organizationRepository.IncrementStats(ctx.Event.OrganizationId, eventCount: 1, stackCount: ctx.IsNew ? 1 : 0); _projectRepository.IncrementStats(ctx.Event.ProjectId, eventCount: 1, stackCount: ctx.IsNew ? 1 : 0); if (!ctx.IsNew) { _stackRepository.IncrementStats(ctx.Event.StackId, ctx.Event.Date.UtcDateTime); } IEnumerable <TimeSpan> offsets = _projectRepository.GetTargetTimeOffsetsForStats(ctx.Event.ProjectId); _statsHelper.Process(ctx.Event, ctx.IsNew, offsets); }