![]() |
VOOZH | about |
dotnet add package Enigmatry.Entry.Infrastructure --version 10.2.3
NuGet\Install-Package Enigmatry.Entry.Infrastructure -Version 10.2.3
<PackageReference Include="Enigmatry.Entry.Infrastructure" Version="10.2.3" />
<PackageVersion Include="Enigmatry.Entry.Infrastructure" Version="10.2.3" />Directory.Packages.props
<PackageReference Include="Enigmatry.Entry.Infrastructure" />Project file
paket add Enigmatry.Entry.Infrastructure --version 10.2.3
#r "nuget: Enigmatry.Entry.Infrastructure, 10.2.3"
#:package Enigmatry.Entry.Infrastructure@10.2.3
#addin nuget:?package=Enigmatry.Entry.Infrastructure&version=10.2.3Install as a Cake Addin
#tool nuget:?package=Enigmatry.Entry.Infrastructure&version=10.2.3Install as a Cake Tool
A library that provides core infrastructure components and utilities for building .NET applications.
Use this library to access common infrastructure patterns, abstractions, and implementations for services like caching, background processing, messaging, and more.
Add the package to your project:
dotnet add package Enigmatry.Entry.Infrastructure
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 | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Enigmatry.Entry.Infrastructure:
| Package | Downloads |
|---|---|
|
Enigmatry.Entry.AspNetCore.Tests.Utilities
Test utilities for AspNetCore projects |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.2.3 | 164 | 6/1/2026 |
| 10.2.3-preview.4 | 70 | 6/1/2026 |
| 10.2.2 | 223 | 4/27/2026 |
| 10.2.1-preview.1 | 58 | 4/27/2026 |
| 10.1.0 | 228 | 4/16/2026 |
| 10.0.1 | 176 | 5/19/2026 |
| 10.0.1-preview.2 | 63 | 4/16/2026 |
| 10.0.0 | 125 | 4/2/2026 |
| 9.6.0 | 305 | 3/18/2026 |
| 9.5.0 | 556 | 1/26/2026 |
| 9.4.0 | 1,814 | 12/22/2025 |
| 9.3.1-preview.3 | 274 | 12/18/2025 |
| 9.3.1-preview.1 | 516 | 11/25/2025 |
| 9.3.0 | 1,191 | 11/10/2025 |
| 9.2.0 | 1,038 | 9/24/2025 |
| 9.1.1-preview.5 | 233 | 8/8/2025 |
| 9.1.1-preview.4 | 142 | 6/27/2025 |
| 8.3.1-preview.1 | 155 | 12/24/2025 |
| 8.3.0 | 526 | 12/23/2025 |
| 8.2.0 | 350 | 9/24/2025 |