Table of Contents

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

proxy IClientProxy

The 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

T

The contract interface type.