Typ zu speziell
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user