ReqRest
Show / Hide Table of Contents

Class RestClient

An abstract base class for implementing a client class which consumes a RESTful HTTP API by statically typing the available interfaces via RestInterface instances that allow the user to create and make requests to the API.

Inheritance
Object
RestClient
RestClient<TConfig>
Implements
IUrlProvider
Namespace: ReqRest
Assembly: ReqRest.dll
Syntax
public abstract class RestClient : IUrlProvider

Constructors

RestClient(Nullable<RestClientConfiguration>)

Initializes a new RestClient instance which uses the specified configuration.

Declaration
public RestClient(RestClientConfiguration? configuration)
Parameters
Type Name Description
Nullable<RestClientConfiguration> configuration

The configuration for this client instance.

This can be null. In this case, a new RestClientConfiguration is created and used instead.

Properties

Configuration

Gets or sets the configuration for this client instance.

Declaration
public RestClientConfiguration Configuration { get; set; }
Exceptions
Type Condition
ArgumentNullException

Explicit Interface Implementations

IUrlProvider.GetUrlBuilder()

Returns a new UriBuilder which starts building on the configured BaseUrl.

Declaration
UrlBuilder IUrlProvider.GetUrlBuilder()
Returns
Type Description
UrlBuilder

Implements

IUrlProvider
Back to top Copyright © 2019 ReqRest - Generated with DocFX - Material Theme made by Oscar Vásquez - Impressum (Imprint)