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:
@ -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) => {
|
||||
|
Reference in New Issue
Block a user