Typ zu speziell

This commit is contained in:
2025-01-17 11:24:04 +01:00
parent 50fee37702
commit cb42ea8154
2 changed files with 5 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ using BeWo.Data.Entities;
using BeWo.Service.ServiceImplementations;
using BS.Shared;
using BS.Shared.AppSender;
using BS.Shared.DataContracts;
using BS.Shared.DataContracts.GkvAbrechnung;
using BS.Shared.Exceptions;
using Newtonsoft.Json;
@@ -24,7 +25,7 @@ namespace Host
private string GkvSecretKey { get; set; } = ConfigurationManager.AppSettings.Get("GkvSecretKey");
public GkvRequestDC GkvRequest { get; set; }
public AppRequestDC AppRequest { get; set; }
public void Sleep() => Thread.Sleep(5000);
@@ -36,9 +37,9 @@ namespace Host
var str = new StreamReader(Request.InputStream).ReadToEnd();
GkvRequest = GkvSender.DeserializeRequest<GkvRequestDC>(str, SendInvalidInputResponse);
AppRequest = GkvSender.DeserializeRequest<AppRequestDC>(str, SendInvalidInputResponse);
switch (GkvRequest.Type)
switch (AppRequest.Type)
{
case RequestType.GkvClientResult:
ClientResult(GkvSender.DeserializeRequest<GkvClientResultRequestDC>(str, SendInvalidInputResponse));