Sisk

Class

JsonRpcMethodCollection

Namespace
Sisk.JsonRPC
Assembly
Sisk.JsonRPC.dll

Represents a collection of JSON-RPC methods, allowing for dynamic addition and removal of methods.

C#
public sealed class JsonRpcMethodCollection

Inheritance #

object ← JsonRpcMethodCollection

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
JsonRpcMethodCollection()

Methods #

NameDescription
AddMethod(string, Delegate)Adds a method to the collection with the specified name.
AddMethodsFromType<T>(T, bool)Adds methods from the specified type to the collection, optionally prefixing method names with the type name.
AddMethodsFromType(Type, object?, bool)Adds methods from the specified type to the collection, optionally prefixing method names with the type name.
AddMethodsFromType(Type, object?)Adds methods from the specified type to the collection without prefixing method names.
AddMethodsFromType(Type)Adds methods from the specified type to the collection without prefixing method names.
RemoveMethod(string)Removes a method from the collection by its name.

Type to search the documentation and the API reference.