Skip to content

.NET

Dependencies

Add one or more of the following NuGet packages to your project:

TypedRest
The main TypedRest library.

TypedRest.Reactive
Adds support for streaming with ReactiveX (Rx) to TypedRest.

TypedRest.OAuth
Provides an HttpClient DelegatingHandler for OAuth 2.0 / OpenID Connect authentication.
This can also be used independently of the other TypedRest packages.

TypedRest.CommandLine
Build command-line interfaces for TypedRest clients.

Dependency Injection

If you wish to use TypedRest in an ASP.NET Core web service (or any other kind of service that uses IServiceProvider-based dependency injection) you can use the .AddTypedRest<T>() extension method. This registers the endpoint you specify for dependency injection and connects it with HttpClientFactory.

See also