예제 #1
0
 public StatsController(ErrorStatsHelper statsHelper, IOrganizationRepository organizationRepository, IErrorStackRepository errorStackRepository, IProjectRepository projectRepository, ICacheClient cacheClient) {
     _cacheClient = cacheClient;
     _statsHelper = statsHelper;
     _organizationRepository = organizationRepository;
     _errorStackRepository = errorStackRepository;
     _projectRepository = projectRepository;
 }
        public ExceptionlessMqServer(IRedisClientsManager clientsManager, IProjectRepository projectRepository, IUserRepository userRepository,
            IErrorStackRepository stackRepository, IOrganizationRepository organizationRepository, ErrorPipeline errorPipeline,
            ErrorStatsHelper errorStatsHelper, IProjectHookRepository projectHookRepository, ICacheClient cacheClient, IMailer mailer, IAppStatsClient stats)
            : base(clientsManager) {
            _projectRepository = projectRepository;
            _projectHookRepository = projectHookRepository;
            _userRepository = userRepository;
            _stackRepository = stackRepository;
            _organizationRepository = organizationRepository;
            _errorPipeline = errorPipeline;
            _errorStatsHelper = errorStatsHelper;
            _cacheClient = cacheClient;
            _mailer = mailer;
            _stats = stats;

            RegisterHandler<SummaryNotification>(ProcessSummaryNotification, ProcessSummaryNotificationException);
            RegisterHandler<ErrorNotification>(ProcessNotification, ProcessNotificationException);
            RegisterHandler<Error>(ProcessError, ProcessErrorException);
            RegisterHandler<WebHookNotification>(ProcessWebHookNotification, ProcessWebHookNotificationException);
        }
예제 #3
0
 public DataHelper(OrganizationRepository organizationRepository,
     ProjectRepository projectRepository,
     UserRepository userRepository,
     ErrorRepository errorRepository,
     ErrorStackRepository errorStackRepository,
     DayStackStatsRepository dayStackStats,
     MonthStackStatsRepository monthStackStats,
     DayProjectStatsRepository dayProjectStats,
     MonthProjectStatsRepository monthProjectStats,
     ErrorStatsHelper errorStatsHelper,
     BillingManager billingManager) {
     _organizationRepository = organizationRepository;
     _projectRepository = projectRepository;
     _userRepository = userRepository;
     _errorRepository = errorRepository;
     _errorStackRepository = errorStackRepository;
     _dayStackStats = dayStackStats;
     _monthStackStats = monthStackStats;
     _dayProjectStats = dayProjectStats;
     _monthProjectStats = monthProjectStats;
     _statsHelper = errorStatsHelper;
     _billingManager = billingManager;
 }
 public UpdateStatsAction(ErrorStatsHelper statsHelper, OrganizationRepository organizationRepository, ProjectRepository projectRepository, ErrorStackRepository errorStackRepository) {
     _organizationRepository = organizationRepository;
     _projectRepository = projectRepository;
     _errorStackRepository = errorStackRepository;
     _statsHelper = statsHelper;
 }