Class
JsonRpcMethodCollection
Represents a collection of JSON-RPC methods, allowing for dynamic addition and removal of methods.
public sealed class JsonRpcMethodCollectionInheritance #
object ← JsonRpcMethodCollection
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| JsonRpcMethodCollection() |
Methods #
| Name | Description |
|---|---|
| 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. |