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