// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
namespaceMicrosoft.CodeAnalysis.SymbolSearch
{
/// <summary>
/// Used so we can mock out how the search service delays work for testing purposes.
/// </summary>
internalinterfaceIDelayService
{
/// <summary>
/// The time to wait after a successful update (default = 1 day).
/// </summary>
TimeSpanUpdateSucceededDelay{get;}
/// <summary>
/// The time to wait after a simple expected sort of failure (i.e. IO exceptions,
/// network exceptions, etc). Things we can recover from and would expect would
/// be transient.
/// </summary>
TimeSpanExpectedFailureDelay{get;}
/// <summary>
/// The time to wait after a catastrophic failed update (default = 1 day). For
/// example, if we download the full DB xml from the server and we cannot parse
/// it. Retrying soon after will not help. We'll just have to wait until proper
/// data is on the server for us to query.
/// </summary>
TimeSpanCatastrophicFailureDelay{get;}
/// <summary>
/// The time to wait after writing to disk fails (default = 10 seconds).
/// </summary>
TimeSpanFileWriteDelay{get;}
/// <summary>
/// How long to wait between each poll of the cache (default = 1 minute).
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem.IO;
namespaceMicrosoft.CodeAnalysis.SymbolSearch
{
/// <summary>
/// Used so we can mock out how the search service does IO for testing purposes.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
usingSystem.Composition;
usingSystem.Threading.Tasks;
usingMicrosoft.CodeAnalysis.Host;
usingMicrosoft.CodeAnalysis.Host.Mef;
usingRoslyn.Utilities;
namespaceMicrosoft.CodeAnalysis.SymbolSearch
{
/// <summary>
/// Used so we can mock out logging in unit tests.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespaceMicrosoft.CodeAnalysis.SymbolSearch
{
/// <summary>
/// Used so we can mock out patching in unit tests.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingMicrosoft.VisualStudio.RemoteControl;
namespaceMicrosoft.CodeAnalysis.SymbolSearch
{
/// <summary>
/// Used so we can mock out the remote control service in unit tests.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.