Improved named parameter generating support. Added the ability to specify the min amount of parameters before converting to named parameters. Made the feature work across all functions of the client code. Bumped package to 1.9.1
This commit is contained in:
@@ -99,11 +99,11 @@ namespace MontoyaTech.Rest.Net.Example
|
||||
|
||||
File.WriteAllText("Client.cs", listener.GenerateCSharpClient());
|
||||
|
||||
File.WriteAllText("Client.js", listener.GenerateJavascriptClient(useJsonNames: true));
|
||||
File.WriteAllText("Client.js", listener.GenerateJavascriptClient(useJsonNames: true, namedParameters: true));
|
||||
|
||||
File.WriteAllText("StaticClient.cs", listener.GenerateCSharpClient("StaticClient", staticCode: true));
|
||||
|
||||
File.WriteAllText("StaticClient.js", listener.GenerateJavascriptClient("StaticClient", staticCode: true, useJsonNames: true));
|
||||
File.WriteAllText("StaticClient.js", listener.GenerateJavascriptClient("StaticClient", staticCode: true, useJsonNames: true, namedParameters: true));
|
||||
|
||||
Console.WriteLine("Generated Client.cs, Client.js, StaticClient.cs, StaticClient.js");
|
||||
|
||||
@@ -155,6 +155,8 @@ namespace MontoyaTech.Rest.Net.Example
|
||||
Console.WriteLine("Download output:" + str);
|
||||
}
|
||||
|
||||
Console.WriteLine("Done. Starting listener.");
|
||||
|
||||
listener.Block();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user