Enigmatry.Entry.Infrastructure 10.0.0

dotnet add package Enigmatry.Entry.Infrastructure --version 10.0.0
                    
NuGet\Install-Package Enigmatry.Entry.Infrastructure -Version 10.0.0
                    
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="10.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Enigmatry.Entry.Infrastructure" Version="10.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Enigmatry.Entry.Infrastructure" />
                    
Project file
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 10.0.0
                    
#r "nuget: Enigmatry.Entry.Infrastructure, 10.0.0"
                    
#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@10.0.0
                    
#: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=10.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Enigmatry.Entry.Infrastructure&version=10.0.0
                    
Install as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.

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
10.0.0 23 4/2/2026
9.6.0 107 3/18/2026
9.5.0 251 1/26/2026
9.4.0 1,506 12/22/2025
9.3.1-preview.3 260 12/18/2025
9.3.1-preview.1 498 11/25/2025
9.3.0 898 11/10/2025
9.2.0 1,014 9/24/2025
9.1.1-preview.5 216 8/8/2025
9.1.1-preview.4 130 6/27/2025
9.1.1-preview.3 192 6/4/2025
9.1.0 1,372 6/3/2025
9.0.1-preview.8 171 5/26/2025
9.0.1-preview.7 252 5/13/2025
9.0.1-preview.6 410 5/9/2025
9.0.1-preview.5 193 5/7/2025
8.3.1-preview.1 138 12/24/2025
8.3.0 342 12/23/2025
8.2.0 326 9/24/2025
8.1.1-preview.3 169 5/7/2025
Loading failed