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
{
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)

View File

@ -19,8 +19,6 @@
public bool QuickDumpEnabled { get; set; }
public SptReflections SptReflections { get; set; }
public SptTimings SptTimings { get; set; }
}
@ -36,22 +34,4 @@
/// </summary>
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; }
}
}