public void Test(HttpMessage httpMessage) { if (!GetParam(httpMessage, "1", "style", out string style)) { httpMessage.result = "command error! \nexample: test 1 Address C:\\Address.csv"; return; } httpMessage.result = ""; if (style == "1") { if (!GetParam(httpMessage, "2", "Address", out string Address)) { httpMessage.result = "command error! \nexample: test 1 Address C:\\Address.csv"; return; } if (!GetParam(httpMessage, "3", "file", out string file)) { httpMessage.result = "command error! \nexample: test 1 Address C:\\Address.csv"; return; } LevelDBStore.Export2CSV_Transfer($"{file}", Address); } else if (style == "2") { OneThreadSynchronizationContext.Instance.Post(this.Test2Async, null); } else if (style == "3") { OneThreadSynchronizationContext.Instance.Post(this.Test3Async, null); } else if (style == "4") { LevelDBStore.Export2CSV_Accounts($"C:\\Accounts_test4.csv"); } else if (style == "5") { if (!GetParam(httpMessage, "2", "Address", out string Address)) { httpMessage.result = "command error! \nexample: test 5 Address C:\\Address.csv"; return; } if (!GetParam(httpMessage, "3", "file", out string file)) { httpMessage.result = "command error! \nexample: test 5 Address C:\\Address.csv"; return; } LevelDBStore.Export2CSV_Account($"{file}", Address); } else if (style == "rule") { TestBeRule(httpMessage); } }