Share via


JsonRpcProxyOptions.MethodNameTransform Property

Definition

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

public Func<string,string> MethodNameTransform { get; set; }
member this.MethodNameTransform : Func<string, string> with get, set
Public Property MethodNameTransform 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