Encamina.Enmarcha.Entities 8.2.0

dotnet add package Encamina.Enmarcha.Entities --version 8.2.0                
NuGet\Install-Package Encamina.Enmarcha.Entities -Version 8.2.0                
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="Encamina.Enmarcha.Entities" Version="8.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Encamina.Enmarcha.Entities --version 8.2.0                
#r "nuget: Encamina.Enmarcha.Entities, 8.2.0"                
#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 Encamina.Enmarcha.Entities as a Cake Addin
#addin nuget:?package=Encamina.Enmarcha.Entities&version=8.2.0

// Install Encamina.Enmarcha.Entities as a Cake Tool
#tool nuget:?package=Encamina.Enmarcha.Entities&version=8.2.0                

Entities

Nuget package

Entities project mainly contains implementations of interfaces from the NuGet package Encamina.Enmarcha.Entities.Abstractions.

Setup

Nuget package

First, install NuGet. Then, install Encamina.Enmarcha.Entities from the package manager console:

PM> Install-Package Encamina.Enmarcha.Entities

.NET CLI:

Install .NET CLI. Next, install Encamina.Enmarcha.Entities from the .NET CLI:

dotnet add package Encamina.Enmarcha.Entities

How to use

ServiceFactory/ServiceFactoryProvider

  • ServiceFactory<T> is a factory that can provide valid instances of a specific service of type T within a scope. It implements IServiceFactory<T>.
  • ServiceFactoryProvider<T> is a provider for factories of services of type T. It implements IServiceFactoryProvider<T>.

An example of use is the CompletionServiceFactoryProvider class of the NuGet Encamina.Enmarcha.AI.OpenAI.Abstractions.

SimpleRetryHelper

SimpleRetryHelper is a simple implementation of a helper for retrying failed operations.

Starting from a Program.cs or a similar entry point file in your project, add the following code:

// Entry point
var builder = WebApplication.CreateBuilder(new WebApplicationOptions
{
   // ...
});

// ...

services.AddLogging();
services.TryAddTransient<IRetryHelper, SimpleRetryHelper>();

And now you can use IRetryHelper, for example, with a constructor injection.

public class MyClass
{
    private readonly IRetryHelper retryHelper;

    public MyClass(IRetryHelper retryHelper)
    {
        this.retryHelper = retryHelper;
    }

    public async Task DoOperationAsync()
    {
        await retryHelper.RetryOperationAsync(retryTimes: 3, waitTimeMilliseconds: 5000, operation: ApiRestCallAsync);
    }

    private async Task ApiRestCallAsync()
    {
         // ...
    }
}

When running DoOperationAsync, the ApiRestCall method will be called up to 3 times, with a 5000-millisecond interval between attempts. In case it does not complete successfully, the last exception thrown by ApiRestCallAsync will be thrown.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Encamina.Enmarcha.Entities:

Package Downloads
Encamina.Enmarcha.AI.OpenAI.Abstractions

Package Description

Encamina.Enmarcha.AI.OpenAI.Azure

Package Description

Encamina.Enmarcha.Email.MailKit

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.2.0 540 10/22/2024
8.2.0-preview-01-m01 211 9/17/2024
8.1.9-preview-03 108 11/19/2024
8.1.9-preview-02 128 10/22/2024
8.1.9-preview-01 469 10/4/2024
8.1.8 864 9/23/2024
8.1.8-preview-07 676 9/12/2024
8.1.8-preview-06 413 9/11/2024
8.1.8-preview-05 194 9/10/2024
8.1.8-preview-04 592 8/16/2024
8.1.8-preview-03 283 8/13/2024
8.1.8-preview-02 203 8/13/2024
8.1.8-preview-01 211 8/12/2024
8.1.7 230 8/7/2024
8.1.7-preview-09 346 7/3/2024
8.1.7-preview-08 221 7/2/2024
8.1.7-preview-07 180 6/10/2024
8.1.7-preview-06 196 6/10/2024
8.1.7-preview-05 217 6/6/2024
8.1.7-preview-04 190 6/6/2024
8.1.7-preview-03 208 5/24/2024
8.1.7-preview-02 186 5/10/2024
8.1.7-preview-01 227 5/8/2024
8.1.6 1,496 5/7/2024
8.1.6-preview-08 183 5/2/2024
8.1.6-preview-07 220 4/29/2024
8.1.6-preview-06 802 4/26/2024
8.1.6-preview-05 211 4/24/2024
8.1.6-preview-04 251 4/22/2024
8.1.6-preview-03 212 4/22/2024
8.1.6-preview-02 269 4/17/2024
8.1.6-preview-01 290 4/15/2024
8.1.5 264 4/15/2024
8.1.5-preview-15 203 4/10/2024
8.1.5-preview-14 258 3/20/2024
8.1.5-preview-13 188 3/18/2024
8.1.5-preview-12 226 3/13/2024
8.1.5-preview-11 181 3/13/2024
8.1.5-preview-10 210 3/13/2024
8.1.5-preview-09 209 3/12/2024
8.1.5-preview-08 194 3/12/2024
8.1.5-preview-07 205 3/8/2024
8.1.5-preview-06 481 3/8/2024
8.1.5-preview-05 214 3/7/2024
8.1.5-preview-04 225 3/7/2024
8.1.5-preview-03 226 3/7/2024
8.1.5-preview-02 338 2/28/2024
8.1.5-preview-01 283 2/19/2024
8.1.4 473 2/15/2024
8.1.3 265 2/13/2024
8.1.3-preview-07 176 2/13/2024
8.1.3-preview-06 234 2/12/2024
8.1.3-preview-05 212 2/9/2024
8.1.3-preview-04 216 2/8/2024
8.1.3-preview-03 207 2/7/2024
8.1.3-preview-02 190 2/2/2024
8.1.3-preview-01 183 2/2/2024
8.1.2 274 2/1/2024
8.1.2-preview-9 205 1/22/2024
8.1.2-preview-8 176 1/19/2024
8.1.2-preview-7 187 1/19/2024
8.1.2-preview-6 185 1/19/2024
8.1.2-preview-5 200 1/19/2024
8.1.2-preview-4 189 1/19/2024
8.1.2-preview-3 181 1/18/2024
8.1.2-preview-2 237 1/18/2024
8.1.2-preview-16 185 1/31/2024
8.1.2-preview-15 184 1/31/2024
8.1.2-preview-14 330 1/25/2024
8.1.2-preview-13 200 1/25/2024
8.1.2-preview-12 207 1/23/2024
8.1.2-preview-11 194 1/23/2024
8.1.2-preview-10 182 1/22/2024
8.1.2-preview-1 180 1/18/2024
8.1.1 265 1/18/2024
8.1.0 217 1/18/2024
8.0.3 290 12/29/2023
8.0.1 267 12/14/2023
8.0.0 313 12/7/2023
6.0.4.3 313 12/29/2023
6.0.4.2 308 12/20/2023
6.0.4.1 327 12/19/2023
6.0.4 338 12/4/2023
6.0.3.20 320 11/27/2023
6.0.3.19 313 11/22/2023