New issue 40 by nialldouglas14: Have JsonRpcClient use .NET 4.0
ExpandoObject to dynamically generate API
http://code.google.com/p/jayrock/issues/detail?id=40
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