Encamina.Enmarcha.Entities
10.0.2
dotnet add package Encamina.Enmarcha.Entities --version 10.0.2
NuGet\Install-Package Encamina.Enmarcha.Entities -Version 10.0.2
<PackageReference Include="Encamina.Enmarcha.Entities" Version="10.0.2" />
<PackageVersion Include="Encamina.Enmarcha.Entities" Version="10.0.2" />
<PackageReference Include="Encamina.Enmarcha.Entities" />
paket add Encamina.Enmarcha.Entities --version 10.0.2
#r "nuget: Encamina.Enmarcha.Entities, 10.0.2"
#:package Encamina.Enmarcha.Entities@10.0.2
#addin nuget:?package=Encamina.Enmarcha.Entities&version=10.0.2
#tool nuget:?package=Encamina.Enmarcha.Entities&version=10.0.2
Entities
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
Twithin a scope. It implementsIServiceFactory<T>. - ServiceFactoryProvider<T> is a provider for factories of services of type
T. It implementsIServiceFactoryProvider<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 | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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. |
-
.NETStandard 2.1
- CommunityToolkit.Diagnostics (>= 8.4.0)
- Encamina.Enmarcha.Entities.Abstractions (>= 10.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.1)
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 |
|---|---|---|
| 10.0.2 | 1,749 | 12/17/2025 |
| 10.0.1 | 421 | 12/17/2025 |
| 10.0.0 | 435 | 12/16/2025 |
| 10.0.0-preview-09 | 586 | 11/19/2025 |
| 10.0.0-preview-08 | 592 | 11/18/2025 |
| 10.0.0-preview-07 | 806 | 10/22/2025 |
| 10.0.0-preview-06 | 1,446 | 10/14/2025 |
| 10.0.0-preview-05 | 374 | 10/8/2025 |
| 10.0.0-preview-04 | 360 | 10/7/2025 |
| 10.0.0-preview-03 | 479 | 9/16/2025 |
| 10.0.0-preview-02 | 484 | 9/16/2025 |
| 8.3.0 | 1,441 | 9/10/2025 |
| 8.3.0-preview-02 | 351 | 9/10/2025 |
| 8.3.0-preview-01 | 386 | 9/8/2025 |
| 8.2.1-preview-08 | 344 | 8/18/2025 |
| 8.2.1-preview-07 | 349 | 8/12/2025 |
| 8.2.1-preview-06 | 342 | 8/11/2025 |
| 8.2.1-preview-05 | 438 | 8/5/2025 |
| 8.2.1-preview-04 | 509 | 7/15/2025 |