Skip to end of metadata
Go to start of metadata

Defines data member for repository that retrieves data from a REST service.

Definition

public interface IRestRepository : ISupportCancellation

Summary

The following table summarizes the members exposed in this interface.

Properties

BaseUrl Gets or sets the base URL.
RestClient Gets or sets the rest client.

Methods

ExecuteAsync(IRestRequest) Executes the request asynchronously.
ExecuteAsync<TResult>(IRestRequest) Executes the request asynchronously.

Properties

string BaseUrl { get; set; }

Gets or sets the base URL.

IRestClient RestClient { get; set; }

Gets or sets the rest client.

Methods

Task<IRestResponse> ExecuteAsync(IRestRequest request)

Executes the request asynchronously.

Parameters

request The request.

Task<IRestResponse<TResult>> ExecuteAsync<TResult>(IRestRequest request)

Executes the request asynchronously.

Type Parameters

TResult The type of the result.

Parameters

request The request.
  • No labels