Merge branch 'release/FixRecalcOnMissing01'
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>WebDoorCreator - Egalware</i>
|
||||
<h4>Version: 0.9.2403.0411</h4>
|
||||
<h4>Version: 0.9.2403.0819</h4>
|
||||
<br /> Release note:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
0.9.2403.0411
|
||||
0.9.2403.0819
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>0.9.2403.0411</version>
|
||||
<version>0.9.2403.0819</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/WDC/stable/WDC.UI.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/WDC/stable/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
</NavLink>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<form method="post" action="@actionUrl">
|
||||
<form method="post" action="@logoutUrl">
|
||||
<button type="submit" class="btn btn-sm btn-danger text-light w-100 fw-bold">Log out <i class="fa-solid fa-arrow-right-from-bracket"></i></button>
|
||||
</form>
|
||||
</li>
|
||||
|
||||
@@ -237,26 +237,11 @@ namespace WebDoorCreator.UI.Components.Gen
|
||||
return answ;
|
||||
}
|
||||
|
||||
protected string actionUrl
|
||||
protected string logoutUrl
|
||||
{
|
||||
get
|
||||
{
|
||||
#if false
|
||||
string baseUrl = Url.Content("~/");
|
||||
#endif
|
||||
string answ = $"{baseUrl}/Identity/Account/LogOut";
|
||||
#if false
|
||||
string answ = "";
|
||||
if (NavManager.Uri.Contains("/WDC/UI"))
|
||||
{
|
||||
answ = $"{baseUrl}/Identity/Account/LogOut";
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = "/Identity/Account/LogOut";
|
||||
}
|
||||
#endif
|
||||
return answ;
|
||||
return $"{baseUrl}/Identity/Account/LogOut";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,8 @@ namespace WebDoorCreator.UI.Controllers
|
||||
{
|
||||
#region Public Constructors
|
||||
|
||||
private static List<int> DoorIdProc = new List<int>();
|
||||
|
||||
public DoorImageController(IConfiguration configuration, QueueDataService cQDService, WebDoorCreatorService cWDCService)
|
||||
{
|
||||
Log.Info("Starting DoorImageController");
|
||||
@@ -41,8 +43,16 @@ namespace WebDoorCreator.UI.Controllers
|
||||
// se fosse vuoto...
|
||||
if (string.IsNullOrEmpty(svgContent))
|
||||
{
|
||||
// richiede ricalcolo img
|
||||
svgContent = await SendRecalcReq(DoorId);
|
||||
if (DoorIdProc.Contains(DoorId))
|
||||
{
|
||||
DoorIdProc.Remove(DoorId);
|
||||
}
|
||||
else
|
||||
{
|
||||
DoorIdProc.Add(DoorId);
|
||||
// richiede ricalcolo img
|
||||
svgContent = await SendRecalcReq(DoorId);
|
||||
}
|
||||
}
|
||||
// se fosse vuoto...
|
||||
if (string.IsNullOrEmpty(svgContent))
|
||||
@@ -50,6 +60,10 @@ namespace WebDoorCreator.UI.Controllers
|
||||
// legge img vuota
|
||||
svgContent = QDService.DoorGetMissingSvg();
|
||||
}
|
||||
else
|
||||
{
|
||||
DoorIdProc.Remove(DoorId);
|
||||
}
|
||||
var result = System.Text.Encoding.UTF8.GetBytes(svgContent);
|
||||
return File(result, "image/svg+xml");
|
||||
}
|
||||
@@ -86,6 +100,7 @@ namespace WebDoorCreator.UI.Controllers
|
||||
List<string> doorIdList = new List<string>() { $"{DoorId}" };
|
||||
// chiamo reset richieste
|
||||
var list2Proc = await QDService.ResetQueueByDoorList(doorIdList);
|
||||
await Task.Delay(WaitReloadSvg);
|
||||
|
||||
// recupero DDF ed invio x processing
|
||||
if (DoorId > 0)
|
||||
@@ -93,6 +108,7 @@ namespace WebDoorCreator.UI.Controllers
|
||||
string currDDF = await WDService.DoorOpGetDDF(DoorId);
|
||||
// versione corrente del DDF generato
|
||||
int currVers = await QDService.SendCalcReq(DoorId, currDDF);
|
||||
await Task.Delay(WaitReloadSvg);
|
||||
}
|
||||
|
||||
// attende ...
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>0.9.2403.0411</Version>
|
||||
<Version>0.9.2403.0819</Version>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<UserSecretsId>aspnet-WebDoorCreator.UI-dfe95fed-1398-4144-bd43-8b3a765d6608</UserSecretsId>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -6,15 +6,15 @@
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"RuntimeOpt": {
|
||||
"MaxDayCalcCache": 7,
|
||||
"BaseUrl": "/UI"
|
||||
},
|
||||
"ConnectionStrings": {
|
||||
"Redis": "wdc-u-redis-01.ovh:6379, DefaultDatabase=12, connectTimeout=5000, syncTimeout=5000, asyncTimeout=5000, abortConnect=false, ssl=false, password=BtN9Py1wtLfLRvmzWnOPJ7RytDM+CLiVsJ/16zduNTlV8IOPGNrtzJSXPUnImA5PqmUMhKaUqo9NdHIG",
|
||||
"Identity.DB": "Server=WDC-W-SQL-01\\SQLEXPRESS;Database=DCA_WebDoorCreator; User ID=steamware;Password=viadante16; integrated security=False; MultipleActiveResultSets=True; App=WebDoorCreator.UI;",
|
||||
"WDC.DB": "Server=WDC-W-SQL-01\\SQLEXPRESS;Database=DCA_WebDoorCreator; User ID=steamware;Password=viadante16; integrated security=False; MultipleActiveResultSets=True; App=WebDoorCreator.UI;"
|
||||
},
|
||||
"RuntimeOpt": {
|
||||
"MaxDayCalcCache": 28,
|
||||
"BaseUrl": "/UI"
|
||||
},
|
||||
"CompoBaseDirs": {
|
||||
"CurrCompoDir": "U:\\WebDoorSync\\CurrentComp\\Compo",
|
||||
"NewCompoDir": "U:\\WebDoorSync\\NewComp\\Compo"
|
||||
|
||||
@@ -6,6 +6,12 @@
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"ConnectionStrings": {
|
||||
"Redis": "nkcredis.steamware.net:6379, DefaultDatabase=11, connectTimeout=5000, syncTimeout=5000, asyncTimeout=5000, abortConnect=false, ssl=false, password=BtN9Py1wtLfLRvmzWnOPJ7RytDM+CLiVsJ/16zduNTlV8IOPGNrtzJSXPUnImA5PqmUMhKaUqo9NdHIG"
|
||||
//"Redis": "nkcredis.steamware.net:6379, DefaultDatabase=12, connectTimeout=5000, syncTimeout=5000, asyncTimeout=5000, abortConnect=false, ssl=false, password=BtN9Py1wtLfLRvmzWnOPJ7RytDM+CLiVsJ/16zduNTlV8IOPGNrtzJSXPUnImA5PqmUMhKaUqo9NdHIG"
|
||||
//"Identity.DB": "Server=SQL2016PROD;Database=DCA_WebDoorCreator; User ID=sa;Password=keyhammer16; integrated security=False; MultipleActiveResultSets=True; App=WebDoorCreator.UI;",
|
||||
//"WDC.DB": "Server=SQL2016PROD;Database=DCA_WebDoorCreator; User ID=sa;Password=keyhammer16; integrated security=False; MultipleActiveResultSets=True; App=WebDoorCreator.UI;"
|
||||
},
|
||||
"RuntimeOpt": {
|
||||
"MaxDayCalcCache": 7,
|
||||
"BaseUrl": "/WDC/UI"
|
||||
|
||||
@@ -10,9 +10,6 @@
|
||||
"Redis": "nkcredis.steamware.net:6379, DefaultDatabase=11, connectTimeout=5000, syncTimeout=5000, asyncTimeout=5000, abortConnect=false, ssl=false, password=BtN9Py1wtLfLRvmzWnOPJ7RytDM+CLiVsJ/16zduNTlV8IOPGNrtzJSXPUnImA5PqmUMhKaUqo9NdHIG",
|
||||
"Identity.DB": "Server=SQL2016DEV;Database=WebDoorCreator; User ID=sa;Password=keyhammer16; integrated security=False; MultipleActiveResultSets=True; App=WebDoorCreator.UI;",
|
||||
"WDC.DB": "Server=SQL2016DEV;Database=WebDoorCreator; User ID=sa;Password=keyhammer16; integrated security=False; MultipleActiveResultSets=True; App=WebDoorCreator.UI;"
|
||||
//"Redis": "nkcredis.steamware.net:6379, DefaultDatabase=12, connectTimeout=5000, syncTimeout=5000, asyncTimeout=5000, abortConnect=false, ssl=false, password=BtN9Py1wtLfLRvmzWnOPJ7RytDM+CLiVsJ/16zduNTlV8IOPGNrtzJSXPUnImA5PqmUMhKaUqo9NdHIG",
|
||||
//"Identity.DB": "Server=SQL2016PROD;Database=DCA_WebDoorCreator; User ID=sa;Password=keyhammer16; integrated security=False; MultipleActiveResultSets=True; App=WebDoorCreator.UI;",
|
||||
//"WDC.DB": "Server=SQL2016PROD;Database=DCA_WebDoorCreator; User ID=sa;Password=keyhammer16; integrated security=False; MultipleActiveResultSets=True; App=WebDoorCreator.UI;"
|
||||
},
|
||||
"ExternalProviders": {
|
||||
"MailKit": {
|
||||
@@ -32,7 +29,7 @@
|
||||
"DisableWDCMigrate": true
|
||||
},
|
||||
"RuntimeOpt": {
|
||||
"WaitReloadSvg": 200,
|
||||
"WaitReloadSvg": 100,
|
||||
"VetoRemoveProcessing": 5,
|
||||
"MaxDayCalcCache": 7,
|
||||
"BaseUrl": "/WDC/UI",
|
||||
|
||||
Reference in New Issue
Block a user