Reacting to File System changes

IFileProvider is becoming readonly.
This commit is contained in:
Praburaj 2015-03-20 11:39:46 -07:00
parent 1c6800beab
commit 88aa820b9f
1 changed files with 0 additions and 18 deletions

View File

@ -37,28 +37,10 @@ namespace Microsoft.AspNet.Mvc.Razor
get { return true; } get { return true; }
} }
public bool IsReadOnly
{
get
{
throw new NotSupportedException();
}
}
public Stream CreateReadStream() public Stream CreateReadStream()
{ {
var bytes = Encoding.UTF8.GetBytes(Content); var bytes = Encoding.UTF8.GetBytes(Content);
return new MemoryStream(bytes); return new MemoryStream(bytes);
} }
public void WriteContent(byte[] content)
{
throw new NotSupportedException();
}
public void Delete()
{
throw new NotSupportedException();
}
} }
} }