forked from geffzhang/storage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathITransformSink.cs
26 lines (24 loc) · 930 Bytes
/
ITransformSink.cs
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
using System.IO;
namespace Storage.Net.Blobs.Sinks
{
/// <summary>
/// Data transformation sink that can transform both read and write streams on <see cref="IBlobStorage"/>
/// </summary>
public interface ITransformSink
{
/// <summary>
/// Opens a stream for reading based on opened original stream
/// </summary>
/// <param name="fullPath">Full path to file</param>
/// <param name="parentStream">Parent stream that is already open</param>
/// <returns></returns>
Stream OpenReadStream(string fullPath, Stream parentStream);
/// <summary>
/// Opens a stream for writing based on opened original stream
/// </summary>
/// <param name="fullPath">Full path to file</param>
/// <param name="parentStream">Source stream to write</param>
/// <returns></returns>
Stream OpenWriteStream(string fullPath, Stream parentStream);
}
}