Changed Shop interface to be more asynchronous.

Implemented changes in Props.

Implemented said changes in AdafruitShop.

Fixed and improved caching in AdafruitShop.
This commit is contained in:
2021-08-11 23:54:52 -05:00
parent ff080390f8
commit 8a1e5aca15
12 changed files with 145 additions and 76 deletions

View File

@@ -7,7 +7,7 @@ using Microsoft.Extensions.Logging;
namespace Props.Shop.Framework
{
public interface IShop : IDisposable
public interface IShop : IAsyncDisposable
{
string ShopName { get; }
string ShopDescription { get; }
@@ -17,8 +17,7 @@ namespace Props.Shop.Framework
public Task<ProductListing> GetProductFromIdentifier(string identifier);
void Initialize(string workspaceDir, ILoggerFactory loggerFactory);
ValueTask SaveData();
ValueTask Initialize(string workspaceDir, ILoggerFactory loggerFactory);
public SupportedFeatures SupportedFeatures { get; }
}
}