MakoIoT.Device.Utilities.Invoker 1.0.29.40293

dotnet add package MakoIoT.Device.Utilities.Invoker --version 1.0.29.40293
NuGet\Install-Package MakoIoT.Device.Utilities.Invoker -Version 1.0.29.40293
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MakoIoT.Device.Utilities.Invoker" Version="1.0.29.40293" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MakoIoT.Device.Utilities.Invoker --version 1.0.29.40293
#r "nuget: MakoIoT.Device.Utilities.Invoker, 1.0.29.40293"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MakoIoT.Device.Utilities.Invoker as a Cake Addin
#addin nuget:?package=MakoIoT.Device.Utilities.Invoker&version=1.0.29.40293

// Install MakoIoT.Device.Utilities.Invoker as a Cake Tool
#tool nuget:?package=MakoIoT.Device.Utilities.Invoker&version=1.0.29.40293

Mako-IoT.Device.Utilities.Invoker

Gracefully retries given call when exception occurs. This is common technique for transient fault handling.

Usage

HttpClient httpClient = new();
string apiResult;

//try calling REST API max. three times
Invoker.Retry(() =>
{
    using var response = httpClient.Get(apiUrl);
    response.EnsureSuccessStatusCode();
    apiResult = response.Content.ReadAsString();
}, 3, (ex, attempt) =>
{
    _logger.LogError("HttpClient.Get exception", ex);
    return true;
});
Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on MakoIoT.Device.Utilities.Invoker:

Package Downloads
MakoIoT.Device.Services.ConfigurationManager

Configuration mode manager for MAKO-IoT

MakoIoT.Device.Services.WiFi.AP

WiFi Access Point library for MAKO-IoT

MakoIoT.Device.Services.ConfigurationApi

REST API for configuration with MAKO-IoT

MakoIoT.Device.Platform.LocalConfig

MAKO-IoT Platform local configuration library. On-device web server, WiFi AP

MakoIoT.Device.Services.Logging.Storage

Logging to flash storage and logs upload to Elasticsearch for MAKO-IoT

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.29.40293 605 4/8/2024
1.0.28.14340 746 3/21/2024
1.0.27.50780 4,164 11/12/2023
1.0.24.34787 3,395 5/24/2023
1.0.22.49686 131 5/24/2023
1.0.20.26092 548 5/23/2023