Fixing a bug in the journal by working around the fact that IStorageFile:OpenWrite() doesn't let you specify an opening mode for the underlying stream.

--HG--
branch : recipe
This commit is contained in:
Suha Can
2011-02-21 14:53:30 -08:00
parent f694138f29
commit b7a54d8687

View File

@@ -104,6 +104,7 @@ namespace Orchard.Recipes.Services {
using (var stream = journalFile.OpenWrite()) {
using (var tw = new StreamWriter(stream)) {
tw.Write(content);
stream.SetLength(stream.Position);
}
}
}