Encamina.Enmarcha.Entities
8.1.2-preview-10
See the version list below for details.
dotnet add package Encamina.Enmarcha.Entities --version 8.1.2-preview-10
NuGet\Install-Package Encamina.Enmarcha.Entities -Version 8.1.2-preview-10
<PackageReference Include="Encamina.Enmarcha.Entities" Version="8.1.2-preview-10" />
paket add Encamina.Enmarcha.Entities --version 8.1.2-preview-10
#r "nuget: Encamina.Enmarcha.Entities, 8.1.2-preview-10"
// Install Encamina.Enmarcha.Entities as a Cake Addin #addin nuget:?package=Encamina.Enmarcha.Entities&version=8.1.2-preview-10&prerelease // Install Encamina.Enmarcha.Entities as a Cake Tool #tool nuget:?package=Encamina.Enmarcha.Entities&version=8.1.2-preview-10&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-10)
- 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 | 408 | 10/22/2024 |
8.2.0-preview-01-m01 | 197 | 9/17/2024 |
8.1.9-preview-02 | 127 | 10/22/2024 |
8.1.9-preview-01 | 464 | 10/4/2024 |
8.1.8 | 787 | 9/23/2024 |
8.1.8-preview-07 | 607 | 9/12/2024 |
8.1.8-preview-06 | 412 | 9/11/2024 |
8.1.8-preview-05 | 193 | 9/10/2024 |
8.1.8-preview-04 | 591 | 8/16/2024 |
8.1.8-preview-03 | 282 | 8/13/2024 |
8.1.8-preview-02 | 202 | 8/13/2024 |
8.1.8-preview-01 | 210 | 8/12/2024 |
8.1.7 | 227 | 8/7/2024 |
8.1.7-preview-09 | 345 | 7/3/2024 |
8.1.7-preview-08 | 220 | 7/2/2024 |
8.1.7-preview-07 | 179 | 6/10/2024 |
8.1.7-preview-06 | 195 | 6/10/2024 |
8.1.7-preview-05 | 216 | 6/6/2024 |
8.1.7-preview-04 | 189 | 6/6/2024 |
8.1.7-preview-03 | 207 | 5/24/2024 |
8.1.7-preview-02 | 185 | 5/10/2024 |
8.1.7-preview-01 | 226 | 5/8/2024 |
8.1.6 | 1,394 | 5/7/2024 |
8.1.6-preview-08 | 182 | 5/2/2024 |
8.1.6-preview-07 | 219 | 4/29/2024 |
8.1.6-preview-06 | 793 | 4/26/2024 |
8.1.6-preview-05 | 210 | 4/24/2024 |
8.1.6-preview-04 | 250 | 4/22/2024 |
8.1.6-preview-03 | 209 | 4/22/2024 |
8.1.6-preview-02 | 268 | 4/17/2024 |
8.1.6-preview-01 | 289 | 4/15/2024 |
8.1.5 | 259 | 4/15/2024 |
8.1.5-preview-15 | 202 | 4/10/2024 |
8.1.5-preview-14 | 257 | 3/20/2024 |
8.1.5-preview-13 | 187 | 3/18/2024 |
8.1.5-preview-12 | 223 | 3/13/2024 |
8.1.5-preview-11 | 180 | 3/13/2024 |
8.1.5-preview-10 | 209 | 3/13/2024 |
8.1.5-preview-09 | 208 | 3/12/2024 |
8.1.5-preview-08 | 193 | 3/12/2024 |
8.1.5-preview-07 | 204 | 3/8/2024 |
8.1.5-preview-06 | 478 | 3/8/2024 |
8.1.5-preview-05 | 213 | 3/7/2024 |
8.1.5-preview-04 | 224 | 3/7/2024 |
8.1.5-preview-03 | 225 | 3/7/2024 |
8.1.5-preview-02 | 337 | 2/28/2024 |
8.1.5-preview-01 | 282 | 2/19/2024 |
8.1.4 | 472 | 2/15/2024 |
8.1.3 | 260 | 2/13/2024 |
8.1.3-preview-07 | 175 | 2/13/2024 |
8.1.3-preview-06 | 233 | 2/12/2024 |
8.1.3-preview-05 | 209 | 2/9/2024 |
8.1.3-preview-04 | 215 | 2/8/2024 |
8.1.3-preview-03 | 202 | 2/7/2024 |
8.1.3-preview-02 | 189 | 2/2/2024 |
8.1.3-preview-01 | 182 | 2/2/2024 |
8.1.2 | 273 | 2/1/2024 |
8.1.2-preview-9 | 204 | 1/22/2024 |
8.1.2-preview-8 | 175 | 1/19/2024 |
8.1.2-preview-7 | 186 | 1/19/2024 |
8.1.2-preview-6 | 184 | 1/19/2024 |
8.1.2-preview-5 | 199 | 1/19/2024 |
8.1.2-preview-4 | 188 | 1/19/2024 |
8.1.2-preview-3 | 180 | 1/18/2024 |
8.1.2-preview-2 | 236 | 1/18/2024 |
8.1.2-preview-16 | 184 | 1/31/2024 |
8.1.2-preview-15 | 183 | 1/31/2024 |
8.1.2-preview-14 | 329 | 1/25/2024 |
8.1.2-preview-13 | 199 | 1/25/2024 |
8.1.2-preview-12 | 206 | 1/23/2024 |
8.1.2-preview-11 | 193 | 1/23/2024 |
8.1.2-preview-10 | 181 | 1/22/2024 |
8.1.2-preview-1 | 177 | 1/18/2024 |
8.1.1 | 264 | 1/18/2024 |
8.1.0 | 216 | 1/18/2024 |
8.0.3 | 287 | 12/29/2023 |
8.0.1 | 266 | 12/14/2023 |
8.0.0 | 308 | 12/7/2023 |
6.0.4.3 | 312 | 12/29/2023 |
6.0.4.2 | 307 | 12/20/2023 |
6.0.4.1 | 326 | 12/19/2023 |
6.0.4 | 337 | 12/4/2023 |
6.0.3.20 | 319 | 11/27/2023 |
6.0.3.19 | 310 | 11/22/2023 |