Content Reader/Writer, StreamCopyCommandHandler
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using FileTime.Core.ContentAccess;
|
||||
using FileTime.Core.Models;
|
||||
|
||||
namespace FileTime.Providers.Local;
|
||||
|
||||
public class LocalContentReaderFactory : IContentReaderFactory<ILocalContentProvider>
|
||||
{
|
||||
public Task<IContentReader> CreateContentReaderAsync(IElement element)
|
||||
=> Task.FromResult((IContentReader)new LocalContentReader(File.OpenRead(element.NativePath!.Path)));
|
||||
}
|
||||
Reference in New Issue
Block a user