Click or drag to resize

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
Syntax
JsonRpcMethod TryBindToMethod(
	ICollection<JsonRpcMethod> candidates,
	RequestContext context
)

Parameters

candidates
Type: System.Collections.GenericICollectionJsonRpcMethod
The methods to choose from.
context
Type: JsonRpc.ServerRequestContext
The request context.

Return Value

Type: JsonRpcMethod
Target RPC method information, or null if no suitable method exists.
Exceptions
ExceptionCondition
ArgumentNullExceptionEither candidates or context is null.
AmbiguousMatchExceptionMore than one method is found with that suits the specified request.
See Also