Example #1
0
        public DiagnosticsController(IIndexerLogReader indexerLogReader,
                                     IPersistentQueueReader <PersistentQueueMessage> queueReader,
                                     IDashboardVersionManager dashboardVersionManager)
        {
            if (indexerLogReader == null)
            {
                throw new ArgumentNullException("indexerLogReader");
            }
            if (queueReader == null)
            {
                throw new ArgumentNullException("queueReader");
            }
            if (dashboardVersionManager == null)
            {
                throw new ArgumentNullException("dashboardVersionManager");
            }

            _indexerLogReader        = indexerLogReader;
            _queueReader             = queueReader;
            _dashboardVersionManager = dashboardVersionManager;
        }
        public DiagnosticsController(IIndexerLogReader indexerLogReader,
            IPersistentQueueReader<PersistentQueueMessage> queueReader,
            IDashboardVersionManager dashboardVersionManager)
        {
            if (indexerLogReader == null)
            {
                throw new ArgumentNullException("indexerLogReader");
            }
            if (queueReader == null)
            {
                throw new ArgumentNullException("queueReader");
            }
            if (dashboardVersionManager == null)
            {
                throw new ArgumentNullException("dashboardVersionManager");
            }

            _indexerLogReader = indexerLogReader;
            _queueReader = queueReader;
            _dashboardVersionManager = dashboardVersionManager;
        }