Table of Contents

Class JsonRpcOptionalProxyImplementationAttribute

Namespace
Nerdbank.JsonRpc
Assembly
Nerdbank.JsonRpc.dll

Identifies an optional-interface proxy generated by an older version of the JSON-RPC source generator.

[Obsolete("This attribute is retained for compatibility with previously generated proxy assemblies.")]
[AttributeUsage(AttributeTargets.Interface, Inherited = false, AllowMultiple = true)]
public sealed class JsonRpcOptionalProxyImplementationAttribute : Attribute
Inheritance
JsonRpcOptionalProxyImplementationAttribute
Inherited Members

Remarks

Newly generated proxies use Nerdbank.JsonRpc.JsonRpcOptionalProxyFactoryAttribute.

Constructors

JsonRpcOptionalProxyImplementationAttribute(Type, params int[])

Initializes a new instance of the JsonRpcOptionalProxyImplementationAttribute class.

public JsonRpcOptionalProxyImplementationAttribute(Type proxyType, params int[] interfaceIds)

Parameters

proxyType Type

The generated proxy type.

interfaceIds int[]

The sorted optional interface IDs implemented by the proxy.

Properties

InterfaceIds

Gets the sorted optional interface IDs implemented by the proxy.

public IReadOnlyList<int> InterfaceIds { get; }

Property Value

IReadOnlyList<int>

ProxyType

Gets the generated proxy type.

[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)]
public Type ProxyType { get; }

Property Value

Type