1 write to _service
Microsoft.CodeAnalysis.Features (1)
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (1)
107_service = service;
30 references to _service
Microsoft.CodeAnalysis.Features (30)
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (30)
195if (_service._ioService.Exists(databaseFileInfo)) 206catch (Exception e) when (_service._reportAndSwallowExceptionUnlessCanceled(e, cancellationToken)) 214var delay = _service._delayService.ExpectedFailureDelay; 225if (!_service._ioService.Exists(_cacheDirectoryInfo)) 230_service._ioService.Create(_cacheDirectoryInfo); 271var failureDelay = _service._delayService.CatastrophicFailureDelay; 284catch (Exception e) when (_service._reportAndSwallowExceptionUnlessCanceled(e, cancellationToken)) 290var failureDelay = _service._delayService.CatastrophicFailureDelay; 300var delay = _service._delayService.UpdateSucceededDelay; 327_service._ioService.WriteAndFlushAllBytes(tempFilePath, bytes); 332if (_service._ioService.Exists(databaseFileInfo)) 335_service._ioService.Replace(tempFilePath, databaseFileInfo.FullName, destinationBackupFileName: null, ignoreMetadataErrors: true); 341_service._ioService.Move(tempFilePath, databaseFileInfo.FullName); 349IOUtilities.PerformIO(() => _service._ioService.Delete(new FileInfo(tempFilePath))); 362var databaseBytes = _service._ioService.ReadAllBytes(databaseFileInfo.FullName); 374catch (Exception e) when (_service._reportAndSwallowExceptionUnlessCanceled(e, cancellationToken)) 403_service._sourceToDatabase[_source] = new AddReferenceDatabaseWrapper(database); 422catch (Exception e) when (_service._reportAndSwallowExceptionUnlessCanceled(e, cancellationToken)) 439return _service._delayService.UpdateSucceededDelay; 453var finalBytes = _service._patchService.ApplyPatch(databaseBytes, patchBytes); 460return _service._delayService.UpdateSucceededDelay; 494var result = _service._databaseFactoryService.CreateDatabaseFromBytes(bytes); 515using var client = _service._fileDownloaderFactory.CreateClient(HostId, serverPath, pollingMinutes); 548return (element: null, _service._delayService.CachePollDelay); 576catch (Exception e) when (_service._reportAndSwallowExceptionUnlessCanceled(e, cancellationToken)) 582return (element: null, _service._delayService.CatastrophicFailureDelay); 598catch (Exception e) when (IOUtilities.IsNormalIOException(e) || _service._reportAndSwallowExceptionUnlessCanceled(e, cancellationToken)) 607var delay = _service._delayService.FileWriteDelay; 620_service._reportAndSwallowExceptionUnlessCanceled(new FormatException($"Database element invalid. Missing '{ContentAttributeName}' attribute"), CancellationToken.None); 639_service._reportAndSwallowExceptionUnlessCanceled(new FormatException($"Checksum mismatch: expected != actual. {expectedChecksum} != {actualChecksum}"), CancellationToken.None);