Made a storage provider interface and both classic and avalonia impl.
This commit is contained in:
12
Progrart.Core/Storage/IStorageProvider.cs
Normal file
12
Progrart.Core/Storage/IStorageProvider.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Progrart.Core.Storage
|
||||
{
|
||||
public interface IStorageProvider
|
||||
{
|
||||
Task<Stream?> TryOpenRead(string path);
|
||||
Task<Stream?> TryOpenWrite(string path);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user