public TestScanRanLongException(ScanTraits traits, string workerId) : base(String.Format("The test scan for event {0} by worker {1} has run too long", traits.EventId, workerId)) { }
internal MatchScanner( ScanCoordinator monitor, IDistributedTaskParticipationHandle participationHandle, IMatchHistoryStorage storage, IMatchResultsProvider resultsProvider, ScanTraits traits, string workerId, IScannerConfiguration scannerConfig, bool suspended = false) { Log = Logging.GetLongLivedLog(workerId, "MatchScanner", "MatchScanner"); _participationHandle = participationHandle; _matchHistory = storage; _resultsProvider = resultsProvider; _monitor = monitor; _scanTraits = traits; _workerId = workerId; _mainEvent = _matchHistory.GetEventAsync(_scanTraits.EventId).Result; _collection = _mainEvent.GetResultCollectionAsync(_scanTraits.ResultCollection).Result; _suspended = suspended; _scannerConfig = scannerConfig; }