removed un-ness configuration

This commit is contained in:
CWX 2024-08-12 12:19:41 +01:00
parent f02b41e3c3
commit 41c2fb459d
2 changed files with 2 additions and 22 deletions

View File

@ -309,14 +309,14 @@ namespace DumpLib
{ {
try 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 path = (Directory.GetCurrentDirectory() + "\\HTTP_DATA\\").Replace("\\\\", "\\");
var file = uri.LocalPath.Replace("/", ".").Remove(0, 1); var file = uri.LocalPath.Replace("/", ".").Remove(0, 1);
var time = DateTime.Now.ToString(ConfigSettings.DateTimeFormat); var time = DateTime.Now.ToString(ConfigSettings.DateTimeFormat);
if (Directory.CreateDirectory(path).Exists) 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 (Directory.CreateDirectory($@"{path}req.{file}").Exists)
{ {
if (reqParams != null) if (reqParams != null)

View File

@ -18,8 +18,6 @@
public string DateTimeFormat { get; set; } public string DateTimeFormat { get; set; }
public bool QuickDumpEnabled { get; set; } public bool QuickDumpEnabled { get; set; }
public SptReflections SptReflections { get; set; }
public SptTimings SptTimings { get; set; } public SptTimings SptTimings { get; set; }
} }
@ -36,22 +34,4 @@
/// </summary> /// </summary>
public int AllIterationDelayMs { get; set; } public int AllIterationDelayMs { get; set; }
} }
public class SptReflections
{
/// <summary>
/// Default: "get_MainURLFull" as of 128476 client
/// </summary>
public string MainUrlPropName { get; set; }
/// <summary>
/// Default: "Params" as of 128476 client
/// </summary>
public string ParamFieldName { get; set; }
/// <summary>
/// Default: "responseText" as of 128476 client
/// </summary>
public string RequestFieldName { get; set; }
}
} }