Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 939319febe
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (24 sloc) 0.7 kb
#region Usings
using System.IO;
using System.Web.Hosting;
using Microsoft.Scripting;
#endregion
namespace System.Web.Mvc.IronRuby.Core
{
public class VirtualPathStreamContentProvider : StreamContentProvider
{
private readonly string _fileName;
private readonly IPathProvider _pathProvider;
public VirtualPathStreamContentProvider(string fileName, IPathProvider pathProvider)
{
_fileName = fileName;
_pathProvider = pathProvider;
}
#region Overrides of StreamContentProvider
public override Stream GetStream()
{
return _pathProvider.Open(_fileName);
}
#endregion
}
}
Jump to Line
Something went wrong with that request. Please try again.