temp
This commit is contained in:
@@ -957,7 +957,7 @@ namespace BeWo
|
||||
{
|
||||
return s.IsUserValid(tempUsername, lPassword, lPin);
|
||||
}
|
||||
catch (Exception)
|
||||
catch (Exception e)
|
||||
{
|
||||
return UserValidationResult.UnkownError;
|
||||
}
|
||||
|
||||
@@ -11,5 +11,6 @@
|
||||
<add key="DakotaFolder" value="C:\dakotale\" />
|
||||
<add key="ProcessWaitForExitMs" value="10000" />
|
||||
<add key="LogPath" value="C:\GkvAbrechnung\Sender\log.txt" />
|
||||
<add key="GkvSecretKey" value="DfDGNGn72PKfSYxSUsmRdzuBtpR9novewlmYU3gsjiFgSkaZZeylUXlbO42cWNqiKgLdMUFtWUNZT962F1raQDR7HGUzCNYsFeC" />
|
||||
</appSettings>
|
||||
</configuration>
|
||||
@@ -41,12 +41,7 @@ namespace DakotaSender
|
||||
|
||||
HandleQueueFiles();
|
||||
|
||||
var task = HandleResultsAsync();
|
||||
|
||||
task.Wait();
|
||||
|
||||
if (task.IsFaulted)
|
||||
throw task.Exception;
|
||||
HandleResults();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -65,14 +60,15 @@ namespace DakotaSender
|
||||
internal static void PrintTitle()
|
||||
{
|
||||
PrintWithTime("\n", false);
|
||||
PrintLine("-------------------");
|
||||
PrintSeperator();
|
||||
PrintLine("Dakota Sender Modul");
|
||||
PrintLine("-------------------");
|
||||
PrintSeperator();
|
||||
}
|
||||
internal static void PrintSeperator() => PrintLine("-------------------");
|
||||
internal static void PrintEnd()
|
||||
{
|
||||
PrintLine("Ende");
|
||||
PrintLine("-------------------");
|
||||
PrintSeperator();
|
||||
}
|
||||
internal static void PrintLine() => PrintLine(null);
|
||||
internal static void PrintLine(string line)
|
||||
@@ -119,6 +115,8 @@ namespace DakotaSender
|
||||
{
|
||||
throw new Exception($"Statuscode {code} wird nicht akzeptiert. {message}");
|
||||
}
|
||||
|
||||
PrintSeperator();
|
||||
}
|
||||
static Dictionary<string, Dictionary<string, List<DakotaSystemFile>>> ScanQueueFolder()
|
||||
{
|
||||
@@ -200,7 +198,7 @@ namespace DakotaSender
|
||||
|
||||
ten2user2req = new Dictionary<string, Dictionary<long, GkvClientResultRequestDC>>();
|
||||
|
||||
PrintLine();
|
||||
PrintSeperator();
|
||||
foreach (var kv in ten2dat2files)
|
||||
{
|
||||
var ten = kv.Key;
|
||||
@@ -214,6 +212,10 @@ namespace DakotaSender
|
||||
PrintLine($"Bearbeite Datenannahmestelle {dat} für Tenant {ten}.");
|
||||
|
||||
HandleQueueFiles(files);
|
||||
|
||||
PrintSeperator();
|
||||
|
||||
CheckDakotaStatus();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -315,6 +317,18 @@ namespace DakotaSender
|
||||
req.ResultDCs.Add(item);
|
||||
}
|
||||
|
||||
static void HandleResults()
|
||||
{
|
||||
if (ten2user2req is null)
|
||||
return;
|
||||
|
||||
var task = HandleResultsAsync();
|
||||
|
||||
task.Wait();
|
||||
|
||||
if (task.IsFaulted)
|
||||
throw task.Exception;
|
||||
}
|
||||
static async Task HandleResultsAsync()
|
||||
{
|
||||
var tasks = new List<Task>();
|
||||
|
||||
@@ -60,6 +60,9 @@ namespace Host
|
||||
|
||||
private void ClientResult(GkvClientResultRequestDC req)
|
||||
{
|
||||
if (GkvSecretKey is null)
|
||||
SendErrorResponse(INVALID_INPUT + " 1");
|
||||
|
||||
if (GkvSecretKey != req.GkvSecretKey)
|
||||
SendErrorResponse(INVALID_INPUT + " 2");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user