blob: e1ea19bbe39053e2b419a7be968e22ff7192728b (
plain)
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
30
31
32
33
|
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MediaBrowser.Model.IO;
using File = TagLib.File;
namespace Emby.Photos
{
public class StreamFileAbstraction : File.IFileAbstraction
{
public StreamFileAbstraction(string name, Stream readStream)
{
// TODO: Fix deadlock when setting an actual writable Stream
WriteStream = readStream;
ReadStream = readStream;
Name = name;
}
public string Name { get; private set; }
public Stream ReadStream { get; private set; }
public Stream WriteStream { get; private set; }
public void CloseStream(Stream stream)
{
stream.Dispose();
}
}
}
|