-
Notifications
You must be signed in to change notification settings - Fork 0
/
IFileWritable.cs
25 lines (23 loc) · 949 Bytes
/
IFileWritable.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
using System.IO;
namespace TeleScope.Persistence.Abstractions
{
/// <summary>
/// This interface provides a generic approach to write generic data to a file based data sink. The interface inherits from <seealso cref="IWritable{T}"/>
/// </summary>
/// <typeparam name="T">The type that is given on the application side.</typeparam>
public interface IFileWritable<T> : IWritable<T>
{
/// <summary>
/// Updates the file information to change the file sink after instanciation process.
/// </summary>
/// <param name="file">The file information object.</param>
/// <returns>The calling instance.</returns>
IFileWritable<T> Update(string file);
/// <summary>
/// Updates the file information to change the file sink after instanciation process.
/// </summary>
/// <param name="fileInfo">The file information object.</param>
/// <returns>The calling instance.</returns>
IFileWritable<T> Update(FileInfo fileInfo);
}
}