 | 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
Syntaxpublic T CreateProxy<T>(
JsonRpcClient client
)
Public Function CreateProxy(Of T) (
client As JsonRpcClient
) As T
Dim instance As JsonRpcProxyBuilder
Dim client As JsonRpcClient
Dim returnValue As T
returnValue = instance.CreateProxy(client)
public:
generic<typename T>
T CreateProxy(
JsonRpcClient^ client
)
member CreateProxy :
client : JsonRpcClient -> 'T
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:
TThe implemented proxy instance.
Exceptions
See Also