 | IJsonRpcMethodBinderTryBindToMethod Method |
[This is preliminary documentation and is subject to change.]
Resolves the target RPC method from the JSON RPC request.
Namespace:
JsonRpc.Contracts
Assembly:
JsonRpc.Commons (in JsonRpc.Commons.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
SyntaxJsonRpcMethod TryBindToMethod(
ICollection<JsonRpcMethod> candidates,
RequestContext context
)
Function TryBindToMethod (
candidates As ICollection(Of JsonRpcMethod),
context As RequestContext
) As JsonRpcMethod
Dim instance As IJsonRpcMethodBinder
Dim candidates As ICollection(Of JsonRpcMethod)
Dim context As RequestContext
Dim returnValue As JsonRpcMethod
returnValue = instance.TryBindToMethod(candidates,
context)
JsonRpcMethod^ TryBindToMethod(
ICollection<JsonRpcMethod^>^ candidates,
RequestContext^ context
)
abstract TryBindToMethod :
candidates : ICollection<JsonRpcMethod> *
context : RequestContext -> JsonRpcMethod
Parameters
- candidates
- Type: System.Collections.GenericICollectionJsonRpcMethod
The methods to choose from. - context
- Type: JsonRpc.ServerRequestContext
The request context.
Return Value
Type:
JsonRpcMethodTarget RPC method information, or
null if no suitable method exists.
Exceptions
See Also