gestione err
This commit is contained in:
@@ -74,6 +74,17 @@ namespace WebDoorCreator.Data.Services
|
||||
RedisValue svgVal = await redisDb.StringGetAsync(currSvgKey);
|
||||
return svgVal.ToString();
|
||||
}
|
||||
/// <summary>
|
||||
/// Restitusice gli errori della porta in oggetto
|
||||
/// </summary>
|
||||
/// <param name="doorIdVers">formato DoorId:Versione</param>
|
||||
/// <returns></returns>
|
||||
public async Task<string> DoorErrGet(string doorIdVers)
|
||||
{
|
||||
RedisKey currErrKey = new RedisKey($"{Constants.CALC_REQ_ERRS}:{doorIdVers}");
|
||||
RedisValue errVal = await redisDb.StringGetAsync(currErrKey);
|
||||
return errVal.ToString();
|
||||
}
|
||||
|
||||
public async Task<bool> FlushRedisCache()
|
||||
{
|
||||
|
||||
@@ -187,7 +187,7 @@ namespace WebDoorCreator.UI.Pages
|
||||
if (string.IsNullOrEmpty(DoorSvgContent))
|
||||
{
|
||||
IsErr = true;
|
||||
//ErrCode = await QDataServ.DoorErrGet(doorSvgVers);
|
||||
ErrCode = await QDataServ.DoorErrGet(doorSvgVers);
|
||||
}
|
||||
await Task.Run(async () => await InvokeAsync(StateHasChanged));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user