Improved route function generator to handle status codes better and check to see if json content was null or empty and return default. Bumped package version to 1.4.2

This commit is contained in:
2023-03-24 07:33:35 -07:00
parent 1345e326a8
commit ff7c356655
5 changed files with 324 additions and 47 deletions

View File

@ -77,11 +77,15 @@ namespace MontoyaTech.Rest.Net.Example
string code = listener.GenerateCSharpClient();
File.WriteAllText("Client.cs", code);
Console.WriteLine(code);
Console.WriteLine();
string staticCode = listener.GenerateCSharpClient("StaticClient", staticCode: true);
File.WriteAllText("Client.Static.cs", staticCode);
Console.WriteLine(staticCode);
listener.RequestPreProcessEvent += (HttpListenerContext context) => {