Basic search outline config UI implemented.
This commit is contained in:
@@ -123,8 +123,13 @@ namespace Props.Shop.Adafruit
|
||||
if (workspaceDir != null)
|
||||
{
|
||||
logger.LogDebug("Saving data in \"{0}\"...", workspaceDir);
|
||||
string configurationPath = Path.Combine(workspaceDir, Configuration.FILE_NAME);
|
||||
File.Delete(configurationPath);
|
||||
await File.WriteAllTextAsync(Path.Combine(workspaceDir, Configuration.FILE_NAME), JsonSerializer.Serialize(configuration));
|
||||
using (Stream fileStream = File.OpenWrite(Path.Combine(workspaceDir, ProductListingCacheData.FILE_NAME)))
|
||||
|
||||
string productListingCachePath = Path.Combine(workspaceDir, ProductListingCacheData.FILE_NAME);
|
||||
File.Delete(productListingCachePath);
|
||||
using (Stream fileStream = File.OpenWrite(productListingCachePath))
|
||||
{
|
||||
await JsonSerializer.SerializeAsync(fileStream, new ProductListingCacheData(await searchManager.ProductListingManager.ProductListings));
|
||||
}
|
||||
|
Reference in New Issue
Block a user