Skip to content

Possibility to specify a method parameter name as it will be referred to by JsonRpc (with unit test)#58

Closed
rommar wants to merge 2 commits intoAstn:masterfrom
rommar:param_attributes
Closed

Possibility to specify a method parameter name as it will be referred to by JsonRpc (with unit test)#58
rommar wants to merge 2 commits intoAstn:masterfrom
rommar:param_attributes

Conversation

@rommar
Copy link
Contributor

@rommar rommar commented Mar 10, 2016

Hello,

This is basically the same as my another pull request to support custom parameter names (#51) but with unit test added.

…default constructed).

This will work the same way as with no attribute specified.
@rommar
Copy link
Contributor Author

rommar commented Mar 11, 2016

I added few changes to support usage of JsonRpcParam attribute with no specific parameter name:

[JsonRpcMethod]
private bool Method([JsonRpcParam] string arg)
{
    ...
}

That doesn't make much sense to use it like this, but mainly serves the purpose of having similar style with JsonRpcMethod attribute.

@Astn
Copy link
Owner

Astn commented Nov 6, 2016

I've pulled these changes into #73 as I was unable to merge this due to conflicts.

@Astn Astn closed this Nov 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants