An open API service indexing awesome lists of open source software.

https://github.com/vpapenko/httpworker

Library to create HTTP API clients
https://github.com/vpapenko/httpworker

background-worker c-sharp csharp dotnet http-client netstandard queue

Last synced: 11 months ago
JSON representation

Library to create HTTP API clients

Awesome Lists containing this project

README

          

[![NuGet](http://img.shields.io/nuget/v/HttpWorker.svg)](https://www.nuget.org/packages/HttpWorker/)

![](https://github.com/vpapenko/HttpWorker/workflows/Tests/badge.svg)

# HttpWorker
HttpWorker is the library to create HTTP API clients.

HttpWorker provides processing of requests in background and managing of network failures.
It has statuses like `CountOfUnprocessedHttpCalls`, `NetworkNotAvailable`, `LongOperationInProcess`, `Working`.

# How to use

* Directly by using of `ApiClientBase`.

Use
`async AddGetCall`
`async AddPostCall`
`async AddDeleteCall`
`async AddPutCall`
to add http call to queue.

* Inheritance

Inherit ApiClientBase to create specific API client like in [JSONPlaceholderTestAPI.cs](TestAPI/JSONPlaceholderTestAPI.cs)