Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have JsonRpcClient use .NET 4.0 ExpandoObject to dynamically generate API #40

Open
GoogleCodeExporter opened this issue Jun 25, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Most JSON-RPC client implementations dynamically generate their API according 
to what is returned by system.listMethods. Therefore instead of this:

Console.WriteLine(client.Invoke("sum", new JsonObject { { "a", 123 }, { "b", 
456 } }));

... one simply does this:

Console.WriteLine(client.sum(123, 456));

.NET now has the ExpandoObject facility to allow runtime generation of methods. 
Having JsonRpcClient make use of this would make life for user code much easier.

Thanks,
Niall

Original issue reported on code.google.com by nialldouglas14 on 20 Jul 2011 at 3:09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant