Enigmatry.Entry.Infrastructure
9.1.1-preview.3
This is a prerelease version of Enigmatry.Entry.Infrastructure.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Enigmatry.Entry.Infrastructure --version 9.1.1-preview.3
NuGet\Install-Package Enigmatry.Entry.Infrastructure -Version 9.1.1-preview.3
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="Enigmatry.Entry.Infrastructure" Version="9.1.1-preview.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Enigmatry.Entry.Infrastructure" Version="9.1.1-preview.3" />
<PackageReference Include="Enigmatry.Entry.Infrastructure" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Enigmatry.Entry.Infrastructure --version 9.1.1-preview.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Enigmatry.Entry.Infrastructure, 9.1.1-preview.3"
#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.
#:package Enigmatry.Entry.Infrastructure@9.1.1-preview.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Enigmatry.Entry.Infrastructure&version=9.1.1-preview.3&prerelease
#tool nuget:?package=Enigmatry.Entry.Infrastructure&version=9.1.1-preview.3&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Infrastructure Library
A library that provides core infrastructure components and utilities for building .NET applications.
Intended Usage
Use this library to access common infrastructure patterns, abstractions, and implementations for services like caching, background processing, messaging, and more.
Installation
Add the package to your project:
dotnet add package Enigmatry.Entry.Infrastructure
Usage Examples
Using the TimeProvider:
using Enigmatry.Entry.Core;
using Enigmatry.Entry.Infrastructure;
public class ReportGenerator
{
private readonly ITimeProvider _timeProvider;
public ReportGenerator(ITimeProvider timeProvider)
{
_timeProvider = timeProvider;
}
public Report GenerateDailyReport()
{
// Get current time in UTC
DateTimeOffset now = _timeProvider.UtcNow;
// Report is for the previous day
DateTimeOffset reportDate = now.AddDays(-1).Date;
var report = new Report
{
GeneratedAt = now,
ReportDate = reportDate,
Title = $"Daily Report for {reportDate:yyyy-MM-dd}"
};
return report;
}
public bool IsReportingPeriodActive()
{
// Using FixedUtcNow ensures the same timestamp is used for all checks in this request
var fixedTime = _timeProvider.FixedUtcNow;
// Reporting is active between 1AM and 5AM UTC
var hour = fixedTime.Hour;
return hour >= 1 && hour < 5;
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Enigmatry.Entry.Core (>= 9.1.1-preview.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
9.1.1-preview.4 | 86 | 6/27/2025 |
9.1.1-preview.3 | 128 | 6/4/2025 |
9.1.0 | 388 | 6/3/2025 |
9.0.1-preview.8 | 123 | 5/26/2025 |
9.0.1-preview.7 | 210 | 5/13/2025 |
9.0.1-preview.6 | 210 | 5/9/2025 |
9.0.1-preview.5 | 147 | 5/7/2025 |
9.0.1-preview.4 | 125 | 4/30/2025 |
9.0.1-preview.2 | 131 | 4/1/2025 |
9.0.0 | 649 | 2/26/2025 |
8.1.1-preview.3 | 118 | 5/7/2025 |
8.1.1-preview.1 | 128 | 4/1/2025 |
8.1.0 | 353 | 2/19/2025 |
8.0.1-preview.4 | 71 | 2/7/2025 |
8.0.1-preview.2 | 58 | 1/15/2025 |
8.0.0 | 883 | 11/27/2024 |
3.4.6-preview.10 | 71 | 11/27/2024 |
3.4.3 | 1,852 | 10/22/2024 |
3.4.2 | 711 | 10/11/2024 |
3.4.1 | 133 | 10/9/2024 |
3.4.0 | 118 | 10/9/2024 |
3.3.2 | 482 | 8/28/2024 |
3.3.2-preview.7 | 86 | 8/27/2024 |
3.3.1 | 319 | 7/16/2024 |
3.3.1-preview.4 | 73 | 7/12/2024 |
3.3.0 | 1,115 | 6/20/2024 |
3.2.1-preview.4 | 71 | 6/17/2024 |
3.2.1-preview.1 | 79 | 5/23/2024 |
3.2.0 | 3,923 | 4/3/2024 |
3.1.1-preview.1 | 1,017 | 3/13/2024 |
3.1.0 | 367 | 3/8/2024 |
3.1.0-preview.2 | 447 | 2/19/2024 |
3.0.1-preview.2 | 1,160 | 2/9/2024 |
3.0.1-preview.1 | 90 | 1/24/2024 |
3.0.0 | 1,196 | 1/15/2024 |
3.0.0-preview.14 | 131 | 1/9/2024 |
3.0.0-preview.12 | 87 | 1/9/2024 |
3.0.0-preview.5 | 75 | 1/10/2024 |
3.0.0-preview.2 | 147 | 12/28/2023 |
3.0.0-preview | 141 | 12/20/2023 |
2.1.0 | 183 | 12/28/2023 |
2.0.1-preview.3 | 114 | 12/1/2023 |
2.0.1-preview.2 | 88 | 11/29/2023 |
2.0.1-preview.1 | 83 | 11/28/2023 |
2.0.0 | 469 | 11/8/2023 |
2.0.0-preview.3 | 472 | 10/27/2023 |
2.0.0-preview.2 | 90 | 10/27/2023 |
2.0.0-preview.1 | 95 | 10/27/2023 |
2.0.0-preview | 145 | 10/27/2023 |
1.1.500 | 164 | 10/27/2023 |
1.1.495 | 211 | 9/24/2023 |
1.1.486 | 451 | 9/13/2023 |
1.1.484 | 227 | 9/7/2023 |
1.1.482 | 177 | 9/6/2023 |
1.1.480 | 332 | 8/24/2023 |
1.1.477 | 508 | 8/2/2023 |
1.1.464 | 217 | 7/5/2023 |
1.1.447 | 856 | 5/26/2023 |
1.1.396 | 471 | 4/11/2023 |
1.1.383 | 314 | 4/3/2023 |
1.1.377 | 294 | 3/13/2023 |
1.1.376 | 258 | 3/13/2023 |
1.1.365 | 832 | 2/15/2023 |