Class JsonRpcContractAttribute
- Namespace
- Nerdbank.JsonRpc
- Assembly
- Nerdbank.JsonRpc.dll
Identifies an interface that describes a JSON-RPC contract and enables contract validation.
[AttributeUsage(AttributeTargets.Interface, Inherited = false, AllowMultiple = false)]
public sealed class JsonRpcContractAttribute : Attribute
- Inheritance
-
JsonRpcContractAttribute
- Inherited Members
Remarks
By default, a client proxy is generated for the interface. Apply
[GenerateShape(IncludeMethods = MethodShapeFlags.PublicInstance)] from PolyType
to include the methods required for RPC dispatch.
Properties
GenerateProxy
Gets or sets a value indicating whether a client proxy should be generated for this interface.
public bool GenerateProxy { get; set; }