forked from aspnet/AspNetWebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildManagerWrapper.cs
More file actions
29 lines (26 loc) · 1.08 KB
/
Copy pathBuildManagerWrapper.cs
File metadata and controls
29 lines (26 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. 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
{
/// <summary>
/// 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.
/// </summary>
public Stream ReadCachedFile(string path)
{
return BuildManager.ReadCachedFile(path);
}
/// <summary>
/// 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.
/// </summary>
public Stream CreateCachedFile(string path)
{
return BuildManager.CreateCachedFile(path);
}
}
}