|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Text;
using System.Threading;
using Microsoft.CodeAnalysis.Text;
namespace Microsoft.CodeAnalysis.Host
{
/// <summary>
/// This service allows you to access temporary storage.
/// </summary>
internal interface ITemporaryStorageService2 : ITemporaryStorageServiceInternal
{
/// <summary>
/// Attach to existing <see cref="ITemporaryStreamStorage"/> with given name.
/// </summary>
ITemporaryStreamStorageInternal AttachTemporaryStreamStorage(string storageName, long offset, long size);
/// <summary>
/// Attach to existing <see cref="ITemporaryTextStorage"/> with given name.
/// </summary>
ITemporaryTextStorageInternal AttachTemporaryTextStorage(string storageName, long offset, long size, SourceHashAlgorithm checksumAlgorithm, Encoding? encoding);
}
}
|