Namespace Phetch.Core
Classes
- EndpointOptions
A re-usable version of EndpointOptions<TArg, TResult> without type arguments, which can be used to share endpoint settings across multiple endpoints.
- EndpointOptions<TArg, TResult>
Options that are passed to an Endpoint.
- Endpoint<TArg, TResult>
Defines an "endpoint" that represents a single query function, usually for a specific HTTP endpoint.
- FixedQuery<TArg, TResult>
A class representing a query with a single (fixed) query argument.
- NoRetryHandler
A retry handler that can be used to override the retry handler for an endpoint, so that no retries are made.
- ParameterlessEndpoint<TResult>
An alternate version of Endpoint<TArg, TResult> for queries that have no parameters.
- QueryExtensions
A collection of helpers to simplify working with IQuery objects.
- QueryFailureEventArgs
Object containing information about a succeeded query, without type information.
- QueryFailureEventArgs<TArg>
Object containing information about a succeeded query.
- QueryOptions
A re-usable version of QueryOptions<TArg, TResult> without type arguments, which can be used to share query settings across multiple calls to endpoint.Use(options).
- QueryOptions<TArg, TResult>
Options that are passed when creating a Query<TArg, TResult> or calling Use(QueryOptions<TArg, TResult>?).
- QueryResult<TResult>
Represents the result of a query invokation, which either succeeded with data or failed with an exception.
- QuerySuccessEventArgs<TArg, TResult>
Object containing information about a succeeded query.
- Query<TResult>
An alternate version of Query<TArg, TResult> for queries with no parameters.
- Query<TArg, TResult>
An asynchronous query taking one parameter of type
TArg
and returning a result of typeTResult
- ResultlessEndpoint<TArg>
An alternate version of Endpoint<TArg, TResult> for queries that have no return value.
- RetryHandler
A helper class for creating retry handlers.
- SimpleRetryHandler
A simple retry handler that retries a given number of times with no waiting between retries.
This will retry if the query function throws an exception other than OperationCanceledException.
Structs
- Unit
A type that allows only one value.
Interfaces
- IQuery
A query with unknown type arguments.
- IQuery<TArg, TResult>
An asynchronous query taking one parameter of type
TArg
and returning a result of typeTResult
- IRetryHandler
An interface to allow queries to be retried when they fail.
Enums
- QueryStatus
A type representing the possible states of a query.