Encamina.Enmarcha.Entities
8.2.0-preview-01-m01
See the version list below for details.
dotnet add package Encamina.Enmarcha.Entities --version 8.2.0-preview-01-m01
NuGet\Install-Package Encamina.Enmarcha.Entities -Version 8.2.0-preview-01-m01
<PackageReference Include="Encamina.Enmarcha.Entities" Version="8.2.0-preview-01-m01" />
paket add Encamina.Enmarcha.Entities --version 8.2.0-preview-01-m01
#r "nuget: Encamina.Enmarcha.Entities, 8.2.0-preview-01-m01"
// Install Encamina.Enmarcha.Entities as a Cake Addin #addin nuget:?package=Encamina.Enmarcha.Entities&version=8.2.0-preview-01-m01&prerelease // Install Encamina.Enmarcha.Entities as a Cake Tool #tool nuget:?package=Encamina.Enmarcha.Entities&version=8.2.0-preview-01-m01&prerelease
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
T
within 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. |
.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.2.2)
- Encamina.Enmarcha.Entities.Abstractions (>= 8.2.0-preview-01-m01)
- Microsoft.Extensions.Logging.Abstractions (>= 8.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 |
---|---|---|
8.2.0 | 313 | 10/22/2024 |
8.2.0-preview-01-m01 | 196 | 9/17/2024 |
8.1.9-preview-02 | 122 | 10/22/2024 |
8.1.9-preview-01 | 444 | 10/4/2024 |
8.1.8 | 738 | 9/23/2024 |
8.1.8-preview-07 | 570 | 9/12/2024 |
8.1.8-preview-06 | 411 | 9/11/2024 |
8.1.8-preview-05 | 192 | 9/10/2024 |
8.1.8-preview-04 | 590 | 8/16/2024 |
8.1.8-preview-03 | 281 | 8/13/2024 |
8.1.8-preview-02 | 201 | 8/13/2024 |
8.1.8-preview-01 | 209 | 8/12/2024 |
8.1.7 | 220 | 8/7/2024 |
8.1.7-preview-09 | 344 | 7/3/2024 |
8.1.7-preview-08 | 219 | 7/2/2024 |
8.1.7-preview-07 | 178 | 6/10/2024 |
8.1.7-preview-06 | 192 | 6/10/2024 |
8.1.7-preview-05 | 215 | 6/6/2024 |
8.1.7-preview-04 | 188 | 6/6/2024 |
8.1.7-preview-03 | 206 | 5/24/2024 |
8.1.7-preview-02 | 182 | 5/10/2024 |
8.1.7-preview-01 | 221 | 5/8/2024 |
8.1.6 | 1,336 | 5/7/2024 |
8.1.6-preview-08 | 181 | 5/2/2024 |
8.1.6-preview-07 | 218 | 4/29/2024 |
8.1.6-preview-06 | 790 | 4/26/2024 |
8.1.6-preview-05 | 207 | 4/24/2024 |
8.1.6-preview-04 | 247 | 4/22/2024 |
8.1.6-preview-03 | 207 | 4/22/2024 |
8.1.6-preview-02 | 267 | 4/17/2024 |
8.1.6-preview-01 | 288 | 4/15/2024 |
8.1.5 | 256 | 4/15/2024 |
8.1.5-preview-15 | 201 | 4/10/2024 |
8.1.5-preview-14 | 256 | 3/20/2024 |
8.1.5-preview-13 | 186 | 3/18/2024 |
8.1.5-preview-12 | 222 | 3/13/2024 |
8.1.5-preview-11 | 179 | 3/13/2024 |
8.1.5-preview-10 | 208 | 3/13/2024 |
8.1.5-preview-09 | 207 | 3/12/2024 |
8.1.5-preview-08 | 192 | 3/12/2024 |
8.1.5-preview-07 | 203 | 3/8/2024 |
8.1.5-preview-06 | 477 | 3/8/2024 |
8.1.5-preview-05 | 212 | 3/7/2024 |
8.1.5-preview-04 | 223 | 3/7/2024 |
8.1.5-preview-03 | 224 | 3/7/2024 |
8.1.5-preview-02 | 334 | 2/28/2024 |
8.1.5-preview-01 | 281 | 2/19/2024 |
8.1.4 | 471 | 2/15/2024 |
8.1.3 | 259 | 2/13/2024 |
8.1.3-preview-07 | 170 | 2/13/2024 |
8.1.3-preview-06 | 232 | 2/12/2024 |
8.1.3-preview-05 | 208 | 2/9/2024 |
8.1.3-preview-04 | 214 | 2/8/2024 |
8.1.3-preview-03 | 195 | 2/7/2024 |
8.1.3-preview-02 | 188 | 2/2/2024 |
8.1.3-preview-01 | 181 | 2/2/2024 |
8.1.2 | 272 | 2/1/2024 |
8.1.2-preview-9 | 203 | 1/22/2024 |
8.1.2-preview-8 | 174 | 1/19/2024 |
8.1.2-preview-7 | 185 | 1/19/2024 |
8.1.2-preview-6 | 183 | 1/19/2024 |
8.1.2-preview-5 | 198 | 1/19/2024 |
8.1.2-preview-4 | 187 | 1/19/2024 |
8.1.2-preview-3 | 179 | 1/18/2024 |
8.1.2-preview-2 | 235 | 1/18/2024 |
8.1.2-preview-16 | 183 | 1/31/2024 |
8.1.2-preview-15 | 176 | 1/31/2024 |
8.1.2-preview-14 | 326 | 1/25/2024 |
8.1.2-preview-13 | 198 | 1/25/2024 |
8.1.2-preview-12 | 205 | 1/23/2024 |
8.1.2-preview-11 | 192 | 1/23/2024 |
8.1.2-preview-10 | 180 | 1/22/2024 |
8.1.2-preview-1 | 176 | 1/18/2024 |
8.1.1 | 263 | 1/18/2024 |
8.1.0 | 215 | 1/18/2024 |
8.0.3 | 284 | 12/29/2023 |
8.0.1 | 265 | 12/14/2023 |
8.0.0 | 307 | 12/7/2023 |
6.0.4.3 | 311 | 12/29/2023 |
6.0.4.2 | 306 | 12/20/2023 |
6.0.4.1 | 325 | 12/19/2023 |
6.0.4 | 336 | 12/4/2023 |
6.0.3.20 | 318 | 11/27/2023 |
6.0.3.19 | 307 | 11/22/2023 |