Namespace Singulink.Net.Http.Api
Classes
ApiErrorContent
Represents the content of an API error response, including the content as a string and its content type. Used to store error details when the error response
is not in text/plain or a known/expected format.
ApiException
Represents an exception that occurs during API operations.
BadRequestApiException
Represents an exception that occurs when an API request cannot be processed due to a client error (HTTP 400 Bad Request).
ForbiddenApiException
Represents an exception that occurs when an API request is forbidden (HTTP 403 Forbidden).
HubMessage
Defines a fire-and-forget hub message with no arguments. Messages can be sent in either direction: from the server to clients (received via a client handler) or from a client to the server (handled by a hub method with the same name).
HubMessage<T1>
Defines a fire-and-forget hub message with one argument.
HubMessage<T1, T2>
Defines a fire-and-forget hub message with two arguments.
HubMessage<T1, T2, T3>
Defines a fire-and-forget hub message with three arguments.
HubMessage<T1, T2, T3, T4>
Defines a fire-and-forget hub message with four arguments.
HubMethod<TResult>
Defines a hub method with no arguments that returns a result. Methods can be invoked in either direction: by a client on the server (handled by a hub method with the same name) or by the server on a specific client (handled by a client handler that returns the result).
HubMethod<T1, TResult>
Defines a hub method with one argument that returns a result.
HubMethod<T1, T2, TResult>
Defines a hub method with two arguments that returns a result.
HubMethod<T1, T2, T3, TResult>
Defines a hub method with three arguments that returns a result.
HubStream<TItem>
Defines a hub method with no arguments that streams items from the server to the client. Handled on the server by a hub method with the same name that returns IAsyncEnumerable<T> (or a channel reader) of the item type.
HubStream<T1, TItem>
Defines a hub method with one argument that streams items from the server to the client.
HubStream<T1, T2, TItem>
Defines a hub method with two arguments that streams items from the server to the client.
HubStream<T1, T2, T3, TItem>
Defines a hub method with three arguments that streams items from the server to the client.
NotFoundApiException
Represents an exception that occurs when a requested API resource is not found (HTTP 404 Not Found).
ServerErrorApiException
Represents an unexpected error that occurred while processing an API request (HTTP 500 Internal Server Error).
StreamingResponse
Defines the streaming response format used for endpoints that return IAsyncEnumerable<T> results and provides methods for reading it.
UnauthorizedApiException
Represents an exception that occurs when the API request is unauthorized (HTTP 401 Unauthorized).
UserChangedApiException
Represents an exception that occurs when an API request user ID precondition does not match the current user (HTTP 412 Precondition Failed).
UserRequiredApiException
Represents an exception that occurs when an API request user ID precondition is required but missing (HTTP 428 Precondition Required).
ValidationApiException
Represents an exception that occurs when validation fails for an API request (HTTP 422 Unprocessable Content/Entity).
Interfaces
ISessionData
Represents session data in a session store.
ISessionTokenRefreshInfo
Represents information that should be refreshed on a session token.