Class JsonRpcExtensions
- Namespace
- Nerdbank.JsonRpc
- Assembly
- Nerdbank.JsonRpc.dll
public static class JsonRpcExtensions
- Inheritance
-
JsonRpcExtensions
- Inherited Members
Methods
As<T>(IClientProxy?)
Returns a proxy as an interface only when that interface is enabled on the remote object.
public static T? As<T>(this IClientProxy? proxy) where T : class
Parameters
proxyIClientProxyThe proxy to query, or null.
Returns
- T
The same proxy typed as
T, or null if it is null or the interface is not enabled.
Type Parameters
TThe contract interface type.