temp 5
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
using BS.Shared;
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using BS.Shared;
|
||||
using BS.Shared.AppSender;
|
||||
using BS.Shared.DataContracts.GkvAbrechnung;
|
||||
using BS.Shared.Exceptions;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
@@ -18,6 +21,8 @@ namespace Host
|
||||
{
|
||||
private readonly string INVALID_INPUT = "Ungültige Eingabe";
|
||||
|
||||
private string GkvSecretKey { get; set; } = ConfigurationManager.AppSettings.Get("GkvSecretKey");
|
||||
|
||||
public GkvRequestDC GkvRequest { get; set; }
|
||||
|
||||
public void Sleep() => Thread.Sleep(5000);
|
||||
@@ -53,15 +58,18 @@ namespace Host
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void ClientResult(GkvClientResultRequestDC req)
|
||||
{
|
||||
if (GkvSecretKey != req.GkvSecretKey)
|
||||
SendInvalidInputResponse();
|
||||
|
||||
// Response
|
||||
var response = new GkvResponseDC(false, "default");
|
||||
var response = new GkvResponseDC(false);
|
||||
|
||||
try
|
||||
{
|
||||
var fehler_protokoll = DAOFactory.GenericDAO.GetByID<GkvTransferProtokoll>(req.Protokoll_Fehler_Oid);
|
||||
|
||||
response.Success = true;
|
||||
}
|
||||
catch (GkvException e)
|
||||
|
||||
Reference in New Issue
Block a user