// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.IO;
using System.Web.Compilation;
namespace System.Web.WebPages.Deployment
{
internal sealed class BuildManagerWrapper : IBuildManager
{
///
/// Reads a special cached file from %WindDir%\Microsoft.NET\Framework\vx.x\ASP.NET Temporary Files\<x>\<y>\UserCache that is
/// available across AppDomain recycles.
///
public Stream ReadCachedFile(string path)
{
return BuildManager.ReadCachedFile(path);
}
///
/// Creates or opens a special cached file that is created under %WindDir%\Microsoft.NET\Framework\vx.x\ASP.NET Temporary Files\<x>\<y>\UserCache that is
/// available across AppDomain recycles.
///
public Stream CreateCachedFile(string path)
{
return BuildManager.CreateCachedFile(path);
}
}
}