 | 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
Syntaxpublic Object CreateProxy(
JsonRpcClient client,
Type stubType
)
Public Function CreateProxy (
client As JsonRpcClient,
stubType As Type
) As Object
Dim instance As JsonRpcProxyBuilder
Dim client As JsonRpcClient
Dim stubType As Type
Dim returnValue As Object
returnValue = instance.CreateProxy(client,
stubType)
public:
Object^ CreateProxy(
JsonRpcClient^ client,
Type^ stubType
)
member CreateProxy :
client : JsonRpcClient *
stubType : Type -> Object
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:
ObjectThe implemented proxy instance, which can be cast to
stubType afterwards.
Exceptions
See Also