Click or drag to resize

JsonRpcProxyBuilderCreateProxyT Method (JsonRpcClient)

[This is preliminary documentation and is subject to change.]

Creates a proxy instance that implements the given stub type with JSON RPC.

Namespace:  JsonRpc.DynamicProxy.Client
Assembly:  JsonRpc.DynamicProxy (in JsonRpc.DynamicProxy.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
public T CreateProxy<T>(
	JsonRpcClient client
)

Parameters

client
Type: JsonRpc.ClientJsonRpcClient
The JSON RPC client used to emit RPC requests.

Type Parameters

T
The stub type (or contract) to be implemented. Should be an interface type.

Return Value

Type: T
The implemented proxy instance.
Exceptions
ExceptionCondition
ArgumentNullExceptionclient is null.
ArgumentExceptionT is not a type of interface.
See Also