Content Reader/Writer, StreamCopyCommandHandler

This commit is contained in:
2022-06-09 06:59:53 +02:00
parent e947282d7b
commit 6d9bf7ab32
27 changed files with 494 additions and 27 deletions

View File

@@ -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)));
}