Ancora update x metodi accesso e gestione code
This commit is contained in:
@@ -32,6 +32,7 @@ namespace WebDoorCreator.API.Controllers
|
||||
long numQueue = await QDService.NumRequestPending();
|
||||
return numQueue;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Lunghezza coda in fase di processing
|
||||
/// </summary>
|
||||
@@ -43,6 +44,62 @@ namespace WebDoorCreator.API.Controllers
|
||||
return numQueue;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invio elenco messaggi elaborazioni (se ho errori --> messaggi oppure libero)
|
||||
/// </summary>
|
||||
/// <param name="ProcMessageList"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("PostProcessingMessage")]
|
||||
public async Task<bool> PostProcessingMessage(Dictionary<string, string> ProcMessageList)
|
||||
{
|
||||
bool answ = false;
|
||||
await Task.Delay(1);
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invio elenco risultati elaborazioni (modalità boolean di esecuzione corretta)
|
||||
/// </summary>
|
||||
/// <param name="ProcResultList"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("PostProcessingResult")]
|
||||
public async Task<bool> PostProcessingResult(Dictionary<string, bool> ProcResultList)
|
||||
{
|
||||
bool answ = false;
|
||||
//VC19Check answ = new VC19Check()
|
||||
//{
|
||||
// Result = "KO"
|
||||
//};
|
||||
//var result = await _DataService.InsertCheck(DecodedData, "10.74.82.255");
|
||||
//if (result)
|
||||
//{
|
||||
// answ = new VC19Check
|
||||
// {
|
||||
// DTRecord = DateTime.Now,
|
||||
// CheckRecorded = true,
|
||||
// TimbrRecorder = true,
|
||||
// Result = $"OK, Check Recorded for {DecodedData.nam.fn} {DecodedData.nam.gn} {DecodedData.dob:yyyy.MM.dd}"
|
||||
// };
|
||||
//}
|
||||
//else
|
||||
//{ }
|
||||
await Task.Delay(1);
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invio elenco risultati elaborazioni come elenco di SVG
|
||||
/// </summary>
|
||||
/// <param name="ProcSvgList"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("PostProcessingSvg")]
|
||||
public async Task<bool> PostProcessingSvg(Dictionary<string, string> ProcSvgList)
|
||||
{
|
||||
bool answ = false;
|
||||
await Task.Delay(1);
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Elenco richieste in stato pending
|
||||
/// </summary>
|
||||
@@ -51,7 +108,7 @@ namespace WebDoorCreator.API.Controllers
|
||||
public async Task<Dictionary<string, string>?> ShowPending()
|
||||
{
|
||||
var actQueue = await QDService.RequestPending();
|
||||
return actQueue;// != null && actQueue.Count > 0 ? actQueue : null;
|
||||
return actQueue;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -74,7 +131,7 @@ namespace WebDoorCreator.API.Controllers
|
||||
[HttpGet("TakeProcessingItems")]
|
||||
public async Task<Dictionary<string, string>> TakeProcessingItems(int numItems)
|
||||
{
|
||||
var actQueue = await QDService.RequestPending();
|
||||
var actQueue = await QDService.TakeProcessingItems(numItems);
|
||||
return actQueue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user