removed un-ness configuration
This commit is contained in:
parent
f02b41e3c3
commit
41c2fb459d
@ -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)
|
||||||
|
@ -19,8 +19,6 @@
|
|||||||
|
|
||||||
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; }
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user