2021-09-27 12:42:46 +00:00
|
|
|
using System;
|
|
|
|
using System.IO;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using Wabbajack.Paths;
|
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
namespace Wabbajack.DTOs.Streams;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// A generic way of specifying a file-like source. Could be a in memory object
|
|
|
|
/// a file on disk, or a file inside an archive.
|
|
|
|
/// </summary>
|
|
|
|
public interface IStreamFactory
|
2021-09-27 12:42:46 +00:00
|
|
|
{
|
2021-10-23 16:51:17 +00:00
|
|
|
DateTime LastModifiedUtc { get; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
IPath Name { get; }
|
|
|
|
ValueTask<Stream> GetStream();
|
2021-09-27 12:42:46 +00:00
|
|
|
}
|