Encamina.Enmarcha.Entities 8.1.5

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Encamina.Enmarcha.Entities --version 8.1.5
NuGet\Install-Package Encamina.Enmarcha.Entities -Version 8.1.5
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.1.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Encamina.Enmarcha.Entities --version 8.1.5
#r "nuget: Encamina.Enmarcha.Entities, 8.1.5"
#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.1.5

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

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.1.6-preview-08 0 5/2/2024
8.1.6-preview-07 142 4/29/2024
8.1.6-preview-06 168 4/26/2024
8.1.6-preview-05 144 4/24/2024
8.1.6-preview-04 182 4/22/2024
8.1.6-preview-03 137 4/22/2024
8.1.6-preview-02 208 4/17/2024
8.1.6-preview-01 186 4/15/2024
8.1.5 183 4/15/2024
8.1.5-preview-15 124 4/10/2024
8.1.5-preview-14 142 3/20/2024
8.1.5-preview-13 94 3/18/2024
8.1.5-preview-12 132 3/13/2024
8.1.5-preview-11 97 3/13/2024
8.1.5-preview-10 112 3/13/2024
8.1.5-preview-09 115 3/12/2024
8.1.5-preview-08 94 3/12/2024
8.1.5-preview-07 108 3/8/2024
8.1.5-preview-06 391 3/8/2024
8.1.5-preview-05 98 3/7/2024
8.1.5-preview-04 122 3/7/2024
8.1.5-preview-03 117 3/7/2024
8.1.5-preview-02 232 2/28/2024
8.1.5-preview-01 224 2/19/2024
8.1.4 388 2/15/2024
8.1.3 186 2/13/2024
8.1.3-preview-07 111 2/13/2024
8.1.3-preview-06 127 2/12/2024
8.1.3-preview-05 120 2/9/2024
8.1.3-preview-04 116 2/8/2024
8.1.3-preview-03 123 2/7/2024
8.1.3-preview-02 108 2/2/2024
8.1.3-preview-01 124 2/2/2024
8.1.2 192 2/1/2024
8.1.2-preview-9 125 1/22/2024
8.1.2-preview-8 112 1/19/2024
8.1.2-preview-7 119 1/19/2024
8.1.2-preview-6 110 1/19/2024
8.1.2-preview-5 108 1/19/2024
8.1.2-preview-4 116 1/19/2024
8.1.2-preview-3 107 1/18/2024
8.1.2-preview-2 167 1/18/2024
8.1.2-preview-16 121 1/31/2024
8.1.2-preview-15 113 1/31/2024
8.1.2-preview-14 225 1/25/2024
8.1.2-preview-13 105 1/25/2024
8.1.2-preview-12 100 1/23/2024
8.1.2-preview-11 95 1/23/2024
8.1.2-preview-10 110 1/22/2024
8.1.2-preview-1 96 1/18/2024
8.1.1 194 1/18/2024
8.1.0 156 1/18/2024
8.0.3 234 12/29/2023
8.0.1 201 12/14/2023
8.0.0 242 12/7/2023
6.0.4.3 232 12/29/2023
6.0.4.2 225 12/20/2023
6.0.4.1 250 12/19/2023
6.0.4 257 12/4/2023
6.0.3.20 236 11/27/2023
6.0.3.19 249 11/22/2023