Table of Contents

Class JsonRpcProxyAttribute<T>

Namespace
StreamJsonRpc
Assembly
StreamJsonRpc.dll

Applied to an open generic interface that is also annotated with JsonRpcContractAttribute or RpcMarshalableAttribute to ensure that a proxy of a particular closed generic type is available at runtime.

[AttributeUsage(AttributeTargets.Interface, AllowMultiple = true)]
[Conditional("NEVER")]
public class JsonRpcProxyAttribute<T> : Attribute

Type Parameters

T

The closed generic instance of the applied interface. For example if this attribute is applied to IMyRpc<T> then this type argument might be IMyRpc<int>. Note it should be the entire closed interface type, not just the type argument.

Inheritance
JsonRpcProxyAttribute<T>
Inherited Members

Remarks

Applying this attribute requires at least C# language version 11.0. Projects target lesser runtimes (e.g., .NET Framework) should set the LangVersion property to 11.0 or higher.