update x gestione che evita continua creazioen job schedulati al superamento dell'ora "critica" (22 nel nostro web.config di esempio)
This commit is contained in:
Binary file not shown.
@@ -68,15 +68,19 @@ namespace C2P_CronJob
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
bool answ = true;
|
||||
// controllo se non sia già oltre l'ora "critica", altrimenti restituisce "ok" comunque... (x non continuare a creare altri record dalle 22 in poi)
|
||||
if (DateTime.Now < DateTime.Now.Date.AddHours(memLayer.ML.confReadInt("importStartHour")))
|
||||
{
|
||||
// in questo caso cerco se ci siano pending all'ora configurata x avvio + 5 minuti
|
||||
DateTime oraRif = DateTime.Now.Date.AddHours(memLayer.ML.confReadInt("importStartHour")).AddMinutes(5);
|
||||
answ = (DtProxy.man.taImpTL.getPending(oraRif).Count > 0);
|
||||
try
|
||||
{
|
||||
// in questo caso cerco se ci siano pending all'ora configurata x avvio + 5 minuti
|
||||
DateTime oraRif = DateTime.Now.Date.AddHours(memLayer.ML.confReadInt("importStartHour")).AddMinutes(5);
|
||||
answ = (DtProxy.man.taImpTL.getPending(oraRif).Count > 0);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -11,7 +11,7 @@
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
|
||||
<dsig:DigestValue>rBEeC1ik2/eKZFYZJFcbatVxUzY=</dsig:DigestValue>
|
||||
<dsig:DigestValue>If+FHNH0bHs+yEsiyQVycAaNn3o=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
|
||||
<dsig:DigestValue>I2cEw8oMBzaaoQFTOjrjb+I5zug=</dsig:DigestValue>
|
||||
<dsig:DigestValue>/MlqaNPZU4t+nHlRXzpNDlDmkEA=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
||||
Reference in New Issue
Block a user