Encamina.Enmarcha.Entities
8.1.2-preview-12
See the version list below for details.
dotnet add package Encamina.Enmarcha.Entities --version 8.1.2-preview-12
NuGet\Install-Package Encamina.Enmarcha.Entities -Version 8.1.2-preview-12
<PackageReference Include="Encamina.Enmarcha.Entities" Version="8.1.2-preview-12" />
paket add Encamina.Enmarcha.Entities --version 8.1.2-preview-12
#r "nuget: Encamina.Enmarcha.Entities, 8.1.2-preview-12"
// Install Encamina.Enmarcha.Entities as a Cake Addin #addin nuget:?package=Encamina.Enmarcha.Entities&version=8.1.2-preview-12&prerelease // Install Encamina.Enmarcha.Entities as a Cake Tool #tool nuget:?package=Encamina.Enmarcha.Entities&version=8.1.2-preview-12&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.1.2-preview-12)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
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 | 821 | 10/22/2024 |
8.2.0-preview-01-m01 | 215 | 9/17/2024 |
8.1.9-preview-03 | 144 | 11/19/2024 |
8.1.9-preview-02 | 130 | 10/22/2024 |
8.1.9-preview-01 | 481 | 10/4/2024 |
8.1.8 | 1,043 | 9/23/2024 |
8.1.8-preview-07 | 844 | 9/12/2024 |
8.1.8-preview-06 | 417 | 9/11/2024 |
8.1.8-preview-05 | 200 | 9/10/2024 |
8.1.8-preview-04 | 597 | 8/16/2024 |
8.1.8-preview-03 | 287 | 8/13/2024 |
8.1.8-preview-02 | 205 | 8/13/2024 |
8.1.8-preview-01 | 217 | 8/12/2024 |
8.1.7 | 239 | 8/7/2024 |
8.1.7-preview-09 | 348 | 7/3/2024 |
8.1.7-preview-08 | 223 | 7/2/2024 |
8.1.7-preview-07 | 186 | 6/10/2024 |
8.1.7-preview-06 | 198 | 6/10/2024 |
8.1.7-preview-05 | 221 | 6/6/2024 |
8.1.7-preview-04 | 192 | 6/6/2024 |
8.1.7-preview-03 | 210 | 5/24/2024 |
8.1.7-preview-02 | 188 | 5/10/2024 |
8.1.7-preview-01 | 231 | 5/8/2024 |
8.1.6 | 1,659 | 5/7/2024 |
8.1.6-preview-08 | 185 | 5/2/2024 |
8.1.6-preview-07 | 224 | 4/29/2024 |
8.1.6-preview-06 | 804 | 4/26/2024 |
8.1.6-preview-05 | 213 | 4/24/2024 |
8.1.6-preview-04 | 255 | 4/22/2024 |
8.1.6-preview-03 | 214 | 4/22/2024 |
8.1.6-preview-02 | 271 | 4/17/2024 |
8.1.6-preview-01 | 294 | 4/15/2024 |
8.1.5 | 270 | 4/15/2024 |
8.1.5-preview-15 | 209 | 4/10/2024 |
8.1.5-preview-14 | 260 | 3/20/2024 |
8.1.5-preview-13 | 190 | 3/18/2024 |
8.1.5-preview-12 | 232 | 3/13/2024 |
8.1.5-preview-11 | 183 | 3/13/2024 |
8.1.5-preview-10 | 212 | 3/13/2024 |
8.1.5-preview-09 | 211 | 3/12/2024 |
8.1.5-preview-08 | 196 | 3/12/2024 |
8.1.5-preview-07 | 209 | 3/8/2024 |
8.1.5-preview-06 | 485 | 3/8/2024 |
8.1.5-preview-05 | 216 | 3/7/2024 |
8.1.5-preview-04 | 231 | 3/7/2024 |
8.1.5-preview-03 | 230 | 3/7/2024 |
8.1.5-preview-02 | 340 | 2/28/2024 |
8.1.5-preview-01 | 285 | 2/19/2024 |
8.1.4 | 477 | 2/15/2024 |
8.1.3 | 273 | 2/13/2024 |
8.1.3-preview-07 | 178 | 2/13/2024 |
8.1.3-preview-06 | 236 | 2/12/2024 |
8.1.3-preview-05 | 220 | 2/9/2024 |
8.1.3-preview-04 | 222 | 2/8/2024 |
8.1.3-preview-03 | 211 | 2/7/2024 |
8.1.3-preview-02 | 192 | 2/2/2024 |
8.1.3-preview-01 | 185 | 2/2/2024 |
8.1.2 | 278 | 2/1/2024 |
8.1.2-preview-9 | 207 | 1/22/2024 |
8.1.2-preview-8 | 178 | 1/19/2024 |
8.1.2-preview-7 | 189 | 1/19/2024 |
8.1.2-preview-6 | 187 | 1/19/2024 |
8.1.2-preview-5 | 202 | 1/19/2024 |
8.1.2-preview-4 | 191 | 1/19/2024 |
8.1.2-preview-3 | 185 | 1/18/2024 |
8.1.2-preview-2 | 239 | 1/18/2024 |
8.1.2-preview-16 | 187 | 1/31/2024 |
8.1.2-preview-15 | 186 | 1/31/2024 |
8.1.2-preview-14 | 334 | 1/25/2024 |
8.1.2-preview-13 | 202 | 1/25/2024 |
8.1.2-preview-12 | 211 | 1/23/2024 |
8.1.2-preview-11 | 196 | 1/23/2024 |
8.1.2-preview-10 | 184 | 1/22/2024 |
8.1.2-preview-1 | 182 | 1/18/2024 |
8.1.1 | 269 | 1/18/2024 |
8.1.0 | 221 | 1/18/2024 |
8.0.3 | 294 | 12/29/2023 |
8.0.1 | 271 | 12/14/2023 |
8.0.0 | 317 | 12/7/2023 |
6.0.4.3 | 317 | 12/29/2023 |
6.0.4.2 | 312 | 12/20/2023 |
6.0.4.1 | 331 | 12/19/2023 |
6.0.4 | 342 | 12/4/2023 |
6.0.3.20 | 324 | 11/27/2023 |
6.0.3.19 | 317 | 11/22/2023 |