Table of Contents

Class JsonRpcEventAttribute

Namespace
StreamJsonRpc
Assembly
StreamJsonRpc.dll

Changes the name by which an event is raised over JSON-RPC.

[AttributeUsage(AttributeTargets.Event, AllowMultiple = false, Inherited = true)]
public class JsonRpcEventAttribute : Attribute
Inheritance
JsonRpcEventAttribute
Inherited Members

Remarks

This attribute is useful when an RPC event name differs from its CLR event name or contains characters that are not valid in CLR identifiers. The configured event name is passed to any applicable event name transform.

Constructors

JsonRpcEventAttribute(string)

Initializes a new instance of the JsonRpcEventAttribute class.

public JsonRpcEventAttribute(string name)

Parameters

name string

The replacement name of the event.

Properties

Name

Gets the public RPC name by which this event will be raised.

public string Name { get; }

Property Value

string