Share via


JsonRpcProxyOptions.EventNameTransform Property

Definition

Gets or sets a function that takes the CLR event name and returns the RPC event name used in notifications. This method is useful for adding prefixes to all events, or making them camelCased.

public Func<string,string> EventNameTransform { get; set; }
member this.EventNameTransform : Func<string, string> with get, set
Public Property EventNameTransform As Func(Of String, String)

Property Value

A function, defaulting to a straight pass-through. Never null.

Exceptions

Thrown if set to a null value.

Applies to