private void serviceCategoriesToolStripMenuItem_Click(object sender, EventArgs e) { try { ClearDebug(); PAYNLSDK.API.Service.GetCategories.Request fixture = new PAYNLSDK.API.Service.GetCategories.Request(); InitRequestDebug(fixture); DumpNvc(fixture.GetParameters()); MyStaticPayNlClient.Client.PerformRequest(fixture); DebugRawResponse(fixture); tbMain.Text = fixture.Response.ToString(); } catch (PayNlException ee) { AddDebug("~~EXCEPTION~~"); AddDebug(ee.Message); } }
private async void ServiceCategoriesToolStripMenuItem_Click(object sender, EventArgs e) { try { ClearDebug(); var fixture = new PAYNLSDK.API.Service.GetCategories.Request(); InitRequestDebug(fixture); DumpNvc(fixture.GetParameters()); await ClientService.PerformPostRequestAsync(fixture); DebugRawResponse(fixture); tbMain.Text = fixture.Response.ToString(); } catch (ErrorException ee) { AddDebug("~~EXCEPTION~~"); AddDebug(ee.Message); } }
private void serviceCategoriesToolStripMenuItem_Click(object sender, EventArgs e) { try { APISettings.InitAPI(); ClearDebug(); PAYNLSDK.API.Service.GetCategories.Request fixture = new PAYNLSDK.API.Service.GetCategories.Request(); InitRequestDebug(fixture); DumpNvc(fixture.GetParameters()); APISettings.Client.PerformRequest(fixture); DebugRawResponse(fixture); tbMain.Text = fixture.Response.ToString(); } catch (ErrorException ee) { AddDebug("~~EXCEPTION~~"); AddDebug(ee.Message); } }