wabbajack/Wabbajack.DTOs/Streams/IStreamFactory.cs
2021-10-23 10:51:17 -06:00

18 lines
419 B
C#

using System;
using System.IO;
using System.Threading.Tasks;
using Wabbajack.Paths;
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
{
DateTime LastModifiedUtc { get; }
IPath Name { get; }
ValueTask<Stream> GetStream();
}