Click or drag to resize

JsonRpcProxyBuilderCreateProxy Method (JsonRpcClient, Type)

[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 Object CreateProxy(
	JsonRpcClient client,
	Type stubType
)

Parameters

client
Type: JsonRpc.ClientJsonRpcClient
The JSON RPC client used to emit RPC requests.
stubType
Type: SystemType
The stub type (or contract) to be implemented. Should be an interface type.

Return Value

Type: Object
The implemented proxy instance, which can be cast to stubType afterwards.
Exceptions
ExceptionCondition
ArgumentNullExceptionclient or stubType is null.
ArgumentExceptionstubType is not a Type of interface.
See Also