Прочетете на английски

Споделяне чрез


JsonRpcTargetOptions.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.

C#
public Func<string,string> MethodNameTransform { get; set; }
C#
public Func<string,string>? MethodNameTransform { get; set; }

Property Value

Applies to

Продукт Версии
StreamJsonRpc 1.5, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9