Class HubMethod<T1, TResult>
Defines a hub method with one argument that returns a result.
Namespace: Singulink.Net.Http.Api
Assembly: Singulink.Net.Http.Api.dll
Syntax
public sealed class HubMethod<T1, TResult>
Type Parameters
| Name | Description |
|---|---|
| T1 | The type of the method argument. |
| TResult | The type of the result. |
Remarks
The method name defaults to the name of the member that the definition is assigned to (via CallerMemberNameAttribute), so definitions are
typically declared as static properties in a shared contract class, e.g. public static HubMethod<int, int> Double { get; } = new();.
Constructors
| Name | Description |
|---|---|
| HubMethod(string) | Initializes a new instance of the HubMethod<TResult> class. |
Properties
| Name | Description |
|---|---|
| Name | Gets the method name. |
Methods
| Name | Description |
|---|---|
| ToString() | Returns a string that represents the current object. |