From 41c2fb459da0b6fa8b8900c36acbedff5debc6df Mon Sep 17 00:00:00 2001 From: CWX Date: Mon, 12 Aug 2024 12:19:41 +0100 Subject: [PATCH] removed un-ness configuration --- DumpLib/DumpyTool.cs | 4 ++-- DumpLib/Models/SptConfigClass.cs | 20 -------------------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/DumpLib/DumpyTool.cs b/DumpLib/DumpyTool.cs index 8f5ed20..7cc5886 100644 --- a/DumpLib/DumpyTool.cs +++ b/DumpLib/DumpyTool.cs @@ -309,14 +309,14 @@ namespace DumpLib { try { - var uri = new Uri((string)requestType.GetType().GetMethod(ConfigSettings.SptReflections.MainUrlPropName).Invoke(requestType, null)); + var uri = new Uri((string)requestType.GetType().GetMethod("get_MainURLFull").Invoke(requestType, null)); var path = (Directory.GetCurrentDirectory() + "\\HTTP_DATA\\").Replace("\\\\", "\\"); var file = uri.LocalPath.Replace("/", ".").Remove(0, 1); var time = DateTime.Now.ToString(ConfigSettings.DateTimeFormat); if (Directory.CreateDirectory(path).Exists) { - var reqParams = requestType.GetType().GetField(ConfigSettings.SptReflections.ParamFieldName).GetValue(requestType); + var reqParams = requestType.GetType().GetField("Params").GetValue(requestType); if (Directory.CreateDirectory($@"{path}req.{file}").Exists) { if (reqParams != null) diff --git a/DumpLib/Models/SptConfigClass.cs b/DumpLib/Models/SptConfigClass.cs index 26f5c23..0d87c18 100644 --- a/DumpLib/Models/SptConfigClass.cs +++ b/DumpLib/Models/SptConfigClass.cs @@ -18,8 +18,6 @@ public string DateTimeFormat { get; set; } public bool QuickDumpEnabled { get; set; } - - public SptReflections SptReflections { get; set; } public SptTimings SptTimings { get; set; } } @@ -36,22 +34,4 @@ /// public int AllIterationDelayMs { get; set; } } - - public class SptReflections - { - /// - /// Default: "get_MainURLFull" as of 128476 client - /// - public string MainUrlPropName { get; set; } - - /// - /// Default: "Params" as of 128476 client - /// - public string ParamFieldName { get; set; } - - /// - /// Default: "responseText" as of 128476 client - /// - public string RequestFieldName { get; set; } - } } \ No newline at end of file