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)
195
if (
_service
._ioService.Exists(databaseFileInfo))
206
catch (Exception e) when (
_service
._reportAndSwallowExceptionUnlessCanceled(e, cancellationToken))
214
var delay =
_service
._delayService.ExpectedFailureDelay;
225
if (!
_service
._ioService.Exists(_cacheDirectoryInfo))
230
_service
._ioService.Create(_cacheDirectoryInfo);
271
var failureDelay =
_service
._delayService.CatastrophicFailureDelay;
284
catch (Exception e) when (
_service
._reportAndSwallowExceptionUnlessCanceled(e, cancellationToken))
290
var failureDelay =
_service
._delayService.CatastrophicFailureDelay;
300
var delay =
_service
._delayService.UpdateSucceededDelay;
327
_service
._ioService.WriteAndFlushAllBytes(tempFilePath, bytes);
332
if (
_service
._ioService.Exists(databaseFileInfo))
335
_service
._ioService.Replace(tempFilePath, databaseFileInfo.FullName, destinationBackupFileName: null, ignoreMetadataErrors: true);
341
_service
._ioService.Move(tempFilePath, databaseFileInfo.FullName);
349
IOUtilities.PerformIO(() =>
_service
._ioService.Delete(new FileInfo(tempFilePath)));
362
var databaseBytes =
_service
._ioService.ReadAllBytes(databaseFileInfo.FullName);
374
catch (Exception e) when (
_service
._reportAndSwallowExceptionUnlessCanceled(e, cancellationToken))
403
_service
._sourceToDatabase[_source] = new AddReferenceDatabaseWrapper(database);
422
catch (Exception e) when (
_service
._reportAndSwallowExceptionUnlessCanceled(e, cancellationToken))
439
return
_service
._delayService.UpdateSucceededDelay;
453
var finalBytes =
_service
._patchService.ApplyPatch(databaseBytes, patchBytes);
460
return
_service
._delayService.UpdateSucceededDelay;
494
var result =
_service
._databaseFactoryService.CreateDatabaseFromBytes(bytes);
515
using var client =
_service
._fileDownloaderFactory.CreateClient(HostId, serverPath, pollingMinutes);
548
return (element: null,
_service
._delayService.CachePollDelay);
576
catch (Exception e) when (
_service
._reportAndSwallowExceptionUnlessCanceled(e, cancellationToken))
582
return (element: null,
_service
._delayService.CatastrophicFailureDelay);
598
catch (Exception e) when (IOUtilities.IsNormalIOException(e) ||
_service
._reportAndSwallowExceptionUnlessCanceled(e, cancellationToken))
607
var 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);