public void LoadFromStream(string fileName, Stream stream)
{
Guard.ArgumentNotNull(stream, "stream");
Guard.ArgumentNotNullOrEmpty(fileName, "fileName");
FileName = fileName;
using (FileStream fs = new FileStream(LocalFileName, FileMode.CreateNew))
{
stream.CopyTo(fs);
}
}